]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-74684-2.stderr
Rollup merge of #86434 - CDirkx:ipv6-benchmarking, r=joshtriplett
[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 |     bug(Box::new(x));
5    |     ^^^ expected slice `[u8]`, found `i32`
6    |
7 note: required by a bound in `bug`
8   --> $DIR/issue-74684-2.rs:13:28
9    |
10 LL | fn bug<'a, T: ?Sized + Fun<F<'a> = [u8]>>(t: Box<T>) -> &'static T::F<'a> {
11    |                            ^^^^^^^^^^^^ required by this bound in `bug`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0271`.