]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-74684-2.stderr
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / generic-associated-types / issue-74684-2.stderr
1 error[E0271]: type mismatch resolving `<{integer} as Fun>::F<'_> == [u8]`
2   --> $DIR/issue-74684-2.rs:23:5
3    |
4 LL | fn bug<'a, T: ?Sized + Fun<F<'a> = [u8]>>(t: Box<T>) -> &'static T::F<'a> {
5    |                            ------------ required by this bound in `bug`
6 ...
7 LL |     bug(Box::new(x));
8    |     ^^^ expected slice `[u8]`, found `i32`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0271`.