blob: 72c6d7ae22b4b1f77f011e7045794fe316be2b2b [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/struct-path-self-type-mismatch.rs:7:23
|
LL | Self { inner: 1.5f32 };
| ^^^^^^ expected i32, found f32
error[E0308]: mismatched types
--> $DIR/struct-path-self-type-mismatch.rs:15: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:13:9
|
LL | fn new<U>(u: U) -> Foo<U> {
| ------ expected `Foo<U>` because of return type
LL | / Self {
LL | |
LL | | inner: u
LL | |
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`.