]>
Commit | Line | Data |
---|---|---|
32a655c1 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/issue-38371.rs:4:8 |
32a655c1 | 3 | | |
532ac7d7 | 4 | LL | fn foo(&foo: Foo) { |
416331ca XL |
5 | | ^^^^------ |
6 | | | | |
7 | | expected struct `Foo`, found reference | |
8 | | help: did you mean `foo`: `&Foo` | |
32a655c1 | 9 | | |
60c5eb7d XL |
10 | = note: expected struct `Foo` |
11 | found reference `&_` | |
32a655c1 SL |
12 | |
13 | error[E0308]: mismatched types | |
0731742a | 14 | --> $DIR/issue-38371.rs:18:9 |
32a655c1 | 15 | | |
532ac7d7 | 16 | LL | fn agh(&&bar: &u32) { |
48663c56 XL |
17 | | ^^^^ |
18 | | | | |
60c5eb7d | 19 | | expected `u32`, found reference |
48663c56 | 20 | | help: you can probably remove the explicit borrow: `bar` |
32a655c1 | 21 | | |
60c5eb7d XL |
22 | = note: expected type `u32` |
23 | found reference `&_` | |
32a655c1 SL |
24 | |
25 | error[E0308]: mismatched types | |
0731742a | 26 | --> $DIR/issue-38371.rs:21:8 |
32a655c1 | 27 | | |
532ac7d7 | 28 | LL | fn bgh(&&bar: u32) { |
60c5eb7d | 29 | | ^^^^^ expected `u32`, found reference |
32a655c1 | 30 | | |
60c5eb7d XL |
31 | = note: expected type `u32` |
32 | found reference `&_` | |
32a655c1 SL |
33 | |
34 | error[E0529]: expected an array or slice, found `u32` | |
0731742a | 35 | --> $DIR/issue-38371.rs:24:9 |
32a655c1 | 36 | | |
532ac7d7 | 37 | LL | fn ugh(&[bar]: &u32) { |
32a655c1 SL |
38 | | ^^^^^ pattern cannot match with input type `u32` |
39 | ||
041b39d2 | 40 | error: aborting due to 4 previous errors |
32a655c1 | 41 | |
48663c56 | 42 | Some errors have detailed explanations: E0308, E0529. |
0531ce1d | 43 | For more information about an error, try `rustc --explain E0308`. |