]> git.lizzy.rs Git - rust.git/blob - tests/ui/builtin-type-shadow.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / builtin-type-shadow.stderr
1 error: This generic shadows the built-in type `u32`
2  --> $DIR/builtin-type-shadow.rs:5:8
3   |
4 5 | fn foo<u32>(a: u32) -> u32 {
5   |        ^^^
6   |
7   = note: `-D clippy::builtin-type-shadow` implied by `-D warnings`
8
9 error[E0308]: mismatched types
10  --> $DIR/builtin-type-shadow.rs:6:5
11   |
12 5 | fn foo<u32>(a: u32) -> u32 {
13   |                        --- expected `u32` because of return type
14 6 |     42
15   |     ^^ expected type parameter, found integral variable
16   |
17   = note: expected type `u32`
18              found type `{integer}`
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0308`.