mirror of https://github.com/rust-lang/rust
26 lines
844 B
Plaintext
26 lines
844 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/typeck_type_placeholder_mismatch.rs:13:21
|
|
|
|
|
LL | let x: Foo<_> = Bar::<usize>(PhantomData);
|
|
| ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Foo<_>`, found `Bar<usize>`
|
|
| |
|
|
| expected due to this
|
|
|
|
|
= note: expected struct `Foo<_>`
|
|
found struct `Bar<usize>`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/typeck_type_placeholder_mismatch.rs:22:21
|
|
|
|
|
LL | let x: Foo<_> = Bar::<usize>(PhantomData);
|
|
| ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Foo<_>`, found `Bar<usize>`
|
|
| |
|
|
| expected due to this
|
|
|
|
|
= note: expected struct `Foo<_>`
|
|
found struct `Bar<usize>`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|