]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/issue-38371-unfixable.stderr
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / mismatched_types / issue-38371-unfixable.stderr
1 error[E0529]: expected an array or slice, found `u32`
2   --> $DIR/issue-38371-unfixable.rs:1:9
3    |
4 LL | fn ugh(&[bar]: &u32) {}
5    |         ^^^^^ pattern cannot match with input type `u32`
6
7 error[E0308]: mismatched types
8   --> $DIR/issue-38371-unfixable.rs:3:8
9    |
10 LL | fn bgh(&&bar: u32) {}
11    |        ^^^^^  --- expected due to this
12    |        |
13    |        expected `u32`, found reference
14    |
15    = note:   expected type `u32`
16            found reference `&_`
17
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0308, E0529.
21 For more information about an error, try `rustc --explain E0308`.