1 error[E0308]: mismatched types
2 --> $DIR/struct-path-self-type-mismatch.rs:7:23
4 LL | Self { inner: 1.5f32 };
5 | ^^^^^^ expected `i32`, found `f32`
7 error[E0308]: mismatched types
8 --> $DIR/struct-path-self-type-mismatch.rs:15:20
11 | - expected type parameter
12 LL | fn new<U>(u: U) -> Foo<U> {
13 | - found type parameter
16 | ^ expected type parameter `T`, found type parameter `U`
18 = note: expected type parameter `T`
19 found type parameter `U`
20 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
21 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
23 error[E0308]: mismatched types
24 --> $DIR/struct-path-self-type-mismatch.rs:13:9
27 | - found type parameter
28 LL | fn new<U>(u: U) -> Foo<U> {
29 | - ------ expected `Foo<U>` because of return type
31 | expected type parameter
37 | |_________^ expected type parameter `U`, found type parameter `T`
39 = note: expected struct `Foo<U>`
41 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
42 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
44 error: aborting due to 3 previous errors
46 For more information about this error, try `rustc --explain E0308`.