fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/formal-and-expected-differ.rs:22:29 3 | 4LL | let _: U<_, u32> = U(1, S(3u32)); 5 | - ^^^^^^^ expected `S<f32>`, found `S<u32>` 6 | | 7 | arguments to this struct are incorrect 8 | 9 = note: expected struct `S<f32>` 10 found struct `S<u32>` 11note: tuple struct defined here 12 --> $DIR/formal-and-expected-differ.rs:9:12 13 | 14LL | pub struct U<T1, T2>(T1, S<T2>) 15 | ^ 16 17error[E0308]: mismatched types 18 --> $DIR/formal-and-expected-differ.rs:22:24 19 | 20LL | let _: U<_, u32> = U(1, S(3u32)); 21 | --------- ^^^^^^^^^^^^^ expected `U<_, u32>`, found `U<i32, f32>` 22 | | 23 | expected due to this 24 | 25 = note: expected struct `U<_, u32>` 26 found struct `U<i32, f32>` 27 28error: aborting due to 2 previous errors 29 30For more information about this error, try `rustc --explain E0308`.