]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-34264.stderr
295b8c6f67f357758b2ee27fdb667d8ef3b6ed9e
[rust.git] / src / test / ui / span / issue-34264.stderr
1 error: expected one of `:` or `@`, found `<`
2   --> $DIR/issue-34264.rs:1:14
3    |
4 LL | fn foo(Option<i32>, String) {}
5    |              ^ expected one of `:` or `@` here
6
7 error: expected one of `:` or `@`, found `)`
8   --> $DIR/issue-34264.rs:1:27
9    |
10 LL | fn foo(Option<i32>, String) {}
11    |                           ^ expected one of `:` or `@` here
12
13 error: expected one of `:` or `@`, found `,`
14   --> $DIR/issue-34264.rs:3:9
15    |
16 LL | fn bar(x, y: usize) {}
17    |         ^ expected one of `:` or `@` here
18
19 error[E0061]: this function takes 2 parameters but 3 parameters were supplied
20   --> $DIR/issue-34264.rs:7:5
21    |
22 LL | fn foo(Option<i32>, String) {}
23    | --------------------------- defined here
24 ...
25 LL |     foo(Some(42), 2, "");
26    |     ^^^^^^^^^^^^^^^^^^^^ expected 2 parameters
27
28 error[E0308]: mismatched types
29   --> $DIR/issue-34264.rs:8:13
30    |
31 LL |     bar("", "");
32    |             ^^ expected usize, found reference
33    |
34    = note: expected type `usize`
35               found type `&'static str`
36
37 error[E0061]: this function takes 2 parameters but 3 parameters were supplied
38   --> $DIR/issue-34264.rs:10:5
39    |
40 LL | fn bar(x, y: usize) {}
41    | ------------------- defined here
42 ...
43 LL |     bar(1, 2, 3);
44    |     ^^^^^^^^^^^^ expected 2 parameters
45
46 error: aborting due to 6 previous errors
47
48 Some errors have detailed explanations: E0061, E0308.
49 For more information about an error, try `rustc --explain E0061`.