fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
426 B12 linesraw
1error[E0271]: type mismatch resolving `<i8 as Trait>::AssociatedType == u32`
2  --> $DIR/E0271.rs:10:5
3   |
4LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> {
5   |    ---                         ------------------ required by this bound in `foo`
6...
7LL |     foo(3_i8);
8   |     ^^^ expected `u32`, found `&str`
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0271`.