summary refs log tree commit diff
path: root/src/test/ui/span/issue-34264.stderr
blob: e25caacac8febed524fc3dbcf11b6a26fd65e0ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
error: expected one of `:` or `@`, found `<`
  --> $DIR/issue-34264.rs:11:14
   |
11 | fn foo(Option<i32>, String) {}
   |              ^ expected one of `:` or `@` here

error: expected one of `:` or `@`, found `)`
  --> $DIR/issue-34264.rs:11:27
   |
11 | fn foo(Option<i32>, String) {}
   |                           ^ expected one of `:` or `@` here

error: expected one of `:` or `@`, found `,`
  --> $DIR/issue-34264.rs:12:9
   |
12 | fn bar(x, y: usize) {}
   |         ^ expected one of `:` or `@` here

error[E0061]: this function takes 2 parameters but 3 parameters were supplied
  --> $DIR/issue-34264.rs:16:9
   |
11 | fn foo(Option<i32>, String) {}
   | ------------------------------ defined here
...
16 |     foo(Some(42), 2, "");
   |         ^^^^^^^^^^^^^^^ expected 2 parameters

error[E0308]: mismatched types
  --> $DIR/issue-34264.rs:17:13
   |
17 |     bar("", "");
   |             ^^ expected usize, found reference
   |
   = note: expected type `usize`
              found type `&'static str`
   = help: here are some functions which might fulfill your needs:
           - .len()

error[E0061]: this function takes 2 parameters but 3 parameters were supplied
  --> $DIR/issue-34264.rs:19:9
   |
12 | fn bar(x, y: usize) {}
   | ---------------------- defined here
...
19 |     bar(1, 2, 3);
   |         ^^^^^^^ expected 2 parameters

error: aborting due to 6 previous errors