]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/builtin_type_shadow.stderr
Merge commit '8d14c94b5c0a66241b4244f1c60ac5859cec1d97' into clippyup
[rust.git] / src / tools / clippy / tests / ui / builtin_type_shadow.stderr
1 error: this generic shadows the built-in type `u32`
2   --> $DIR/builtin_type_shadow.rs:4:8
3    |
4 LL | 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:5:5
11    |
12 LL | fn foo<u32>(a: u32) -> u32 {
13    |        ---             --- expected `u32` because of return type
14    |        |
15    |        this type parameter
16 LL |     42
17    |     ^^ expected type parameter `u32`, found integer
18    |
19    = note: expected type parameter `u32`
20                         found type `{integer}`
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0308`.