|
| 1 | +error[E0308]: mismatched types |
| 2 | + --> $DIR/clarify-error-for-generics-with-default-issue-120785.rs:6:9 |
| 3 | + | |
| 4 | +LL | let mut b: What<usize> = What(5, vec![1, 2, 3]); |
| 5 | + | ----------- expected due to this type |
| 6 | +LL | let c: What<usize, String> = What(1, String::from("meow")); |
| 7 | +LL | b = c; |
| 8 | + | ^ expected `What`, found `What<usize, String>` |
| 9 | + | |
| 10 | + = note: expected struct `What<_, Vec<usize>>` |
| 11 | + found struct `What<_, String>` |
| 12 | + |
| 13 | +error[E0308]: mismatched types |
| 14 | + --> $DIR/clarify-error-for-generics-with-default-issue-120785.rs:10:9 |
| 15 | + | |
| 16 | +LL | let mut e: What<usize> = What(5, vec![1, 2, 3]); |
| 17 | + | ----------- expected due to this type |
| 18 | +LL | let f: What<usize, Vec<String>> = What(1, vec![String::from("meow")]); |
| 19 | +LL | e = f; |
| 20 | + | ^ expected `What`, found `What<usize, Vec<String>>` |
| 21 | + | |
| 22 | + = note: expected struct `What<_, Vec<usize>>` |
| 23 | + found struct `What<_, Vec<String>>` |
| 24 | + |
| 25 | +error: aborting due to 2 previous errors |
| 26 | + |
| 27 | +For more information about this error, try `rustc --explain E0308`. |
0 commit comments