2017-05-17 14:19:44 +02:00
|
|
|
warning: This generic shadows the built-in type `u32`
|
2017-02-07 21:05:30 +01:00
|
|
|
--> $DIR/builtin-type-shadow.rs:5:8
|
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
5 | fn foo<u32>(a: u32) -> u32 {
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^
|
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: #[warn(builtin_type_shadow)] on by default
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/builtin-type-shadow.rs:6:5
|
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
6 | 42
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^ expected type parameter, found integral variable
|
|
|
|
|
|
|
|
|
= note: expected type `u32`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|