forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#94471 - matthiaskrgr:rollup-ffz65qt, r=matthi…
…askrgr Rollup of 3 pull requests Successful merges: - rust-lang#94438 (Check method input expressions once) - rust-lang#94459 (Update cargo) - rust-lang#94470 (:arrow_up: rust-analyzer) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
10 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
fn test(t: (i32, i32)) {} | ||
|
||
struct Foo; | ||
|
||
impl Foo { | ||
fn qux(&self) -> i32 { | ||
0 | ||
} | ||
} | ||
|
||
fn bar() { | ||
let x = Foo; | ||
test(x.qux(), x.qux()); | ||
//~^ ERROR this function takes 1 argument but 2 arguments were supplied | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
error[E0061]: this function takes 1 argument but 2 arguments were supplied | ||
--> $DIR/wrong_argument_ice-2.rs:13:5 | ||
| | ||
LL | test(x.qux(), x.qux()); | ||
| ^^^^ ------- ------- supplied 2 arguments | ||
| | ||
note: function defined here | ||
--> $DIR/wrong_argument_ice-2.rs:1:4 | ||
| | ||
LL | fn test(t: (i32, i32)) {} | ||
| ^^^^ ------------- | ||
help: use parentheses to construct a tuple | ||
| | ||
LL | test((x.qux(), x.qux())); | ||
| + + | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0061`. |
Submodule cargo
updated
32 files