blob: 53a07f5196e4b29341da4e6b82f7edd8e91ae2a1 [file] [log] [blame]
error[E0282]: type annotations needed
--> $DIR/method-ambig-one-trait-unknown-int-type.rs:24:17
|
LL | let mut x = Vec::new();
| ----- ^^^^^^^^ cannot infer type for `T`
| |
| consider giving `x` a type
error[E0308]: mismatched types
--> $DIR/method-ambig-one-trait-unknown-int-type.rs:33:20
|
LL | let y: usize = x.foo(); //~ ERROR mismatched types
| ^^^^^^^ expected usize, found isize
error: aborting due to 2 previous errors
Some errors occurred: E0282, E0308.
For more information about an error, try `rustc --explain E0282`.