|
| 1 | +error: expected one of `:` or `@`, found `<` |
| 2 | + --> $DIR/issue-34264.rs:11:14 |
| 3 | + | |
| 4 | +11 | fn foo(Option<i32>, String) {} |
| 5 | + | ^ |
| 6 | + |
| 7 | +error: expected one of `:` or `@`, found `)` |
| 8 | + --> $DIR/issue-34264.rs:11:27 |
| 9 | + | |
| 10 | +11 | fn foo(Option<i32>, String) {} |
| 11 | + | ^ |
| 12 | + |
| 13 | +error: expected one of `:` or `@`, found `,` |
| 14 | + --> $DIR/issue-34264.rs:12:9 |
| 15 | + | |
| 16 | +12 | fn bar(x, y: usize) {} |
| 17 | + | ^ |
| 18 | + |
| 19 | +error[E0061]: this function takes 2 parameters but 3 parameters were supplied |
| 20 | + --> $DIR/issue-34264.rs:16:9 |
| 21 | + | |
| 22 | +11 | fn foo(Option<i32>, String) {} |
| 23 | + | ------------------------------ defined here |
| 24 | +... |
| 25 | +16 | foo(Some(42), 2, ""); |
| 26 | + | ^^^^^^^^^^^^^^^ expected 2 parameters |
| 27 | + |
| 28 | +error[E0308]: mismatched types |
| 29 | + --> $DIR/issue-34264.rs:17:13 |
| 30 | + | |
| 31 | +17 | bar("", ""); |
| 32 | + | ^^ expected usize, found reference |
| 33 | + | |
| 34 | + = note: expected type `usize` |
| 35 | + found type `&'static str` |
| 36 | + = help: here are some functions which might fulfill your needs: |
| 37 | + - .len() |
| 38 | + |
| 39 | +error[E0061]: this function takes 2 parameters but 3 parameters were supplied |
| 40 | + --> $DIR/issue-34264.rs:19:9 |
| 41 | + | |
| 42 | +12 | fn bar(x, y: usize) {} |
| 43 | + | ---------------------- defined here |
| 44 | +... |
| 45 | +19 | bar(1, 2, 3); |
| 46 | + | ^^^^^^^ expected 2 parameters |
| 47 | + |
| 48 | +error: aborting due to 3 previous errors |
| 49 | + |
0 commit comments