Git Product home page Git Product logo

Comments (6)

tgross35 avatar tgross35 commented on September 4, 2024 1

Cc @estebank since you did #127374, might be a quick fixup

from rust.

chansuke avatar chansuke commented on September 4, 2024 1

@rustbot claim

from rust.

tgross35 avatar tgross35 commented on September 4, 2024

It looks like that may have been fixed by b30fdec, can you check what happens on the latest nightly? (Unfortunately the playground hasn't been updated to something recent enough yet).

from rust.

A4-Tacks avatar A4-Tacks commented on September 4, 2024

rustc 1.82.0-nightly (7c2012d 2024-07-26)
The cargo check output doesn't seem to have changed

from rust.

A4-Tacks avatar A4-Tacks commented on September 4, 2024

It looks like that may have been fixed by b30fdec, can you check what happens on the latest nightly? (Unfortunately the playground hasn't been updated to something recent enough yet).

In the example of b30fdec, it seems that the test case does not include a comma that removes the first parameter, but rather the tail parameter

from rust.

A4-Tacks avatar A4-Tacks commented on September 4, 2024

This doesn't seem to remove the comma on the left either

type Result<T> = std::result::Result<T, ()>;

fn foo() -> Result<(), 'static> { Ok(()) }

fn main() { }

output:

error[E0107]: type alias takes 0 lifetime arguments but 1 lifetime argument was supplied
 --> src/main.rs:3:13
  |
3 | fn foo() -> Result<(), 'static> { Ok(()) }
  |             ^^^^^^     ------- help: remove the lifetime argument
  |             |
  |             expected 0 lifetime arguments
  |
note: type alias defined here, with 0 lifetime parameters
 --> src/main.rs:1:6
  |
1 | type Result<T> = std::result::Result<T, ()>;
  |      ^^^^^^

For more information about this error, try `rustc --explain E0107`.
error: could not compile `test2` (bin "test2") due to 1 previous error

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.