2017-08-01 10:54:21 -05:00
|
|
|
error: This generic shadows the built-in type `u32`
|
2017-02-07 14:05:30 -06:00
|
|
|
--> $DIR/builtin-type-shadow.rs:5:8
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
5 | fn foo<u32>(a: u32) -> u32 {
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
2017-08-01 10:54:21 -05:00
|
|
|
= note: `-D builtin-type-shadow` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/builtin-type-shadow.rs:6:5
|
|
|
|
|
|
2017-08-11 07:11:46 -05:00
|
|
|
5 | fn foo<u32>(a: u32) -> u32 {
|
|
|
|
| --- expected `u32` because of return type
|
2017-02-08 07:58:07 -06:00
|
|
|
6 | 42
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^ expected type parameter, found integral variable
|
|
|
|
|
|
|
|
|
= note: expected type `u32`
|
|
|
|
found type `{integer}`
|
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-01 09:15:41 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|