blob: cfba3be613060077768396804722acf407da4061 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/struct-path-self-type-mismatch.rs:17:23
|
LL | Self { inner: 1.5f32 }; //~ ERROR mismatched types
| ^^^^^^ expected i32, found f32
error[E0308]: mismatched types
--> $DIR/struct-path-self-type-mismatch.rs:25:20
|
LL | inner: u
| ^ expected type parameter, found a different type parameter
|
= note: expected type `T`
found type `U`
error[E0308]: mismatched types
--> $DIR/struct-path-self-type-mismatch.rs:23:9
|
LL | fn new<U>(u: U) -> Foo<U> {
| ------ expected `Foo<U>` because of return type
LL | / Self {
LL | | //~^ ERROR mismatched types
LL | | inner: u
LL | | //~^ ERROR mismatched types
LL | | }
| |_________^ expected type parameter, found a different type parameter
|
= note: expected type `Foo<U>`
found type `Foo<T>`
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0308`.