1 warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-74684-2.rs:1:12
4 LL | #![feature(generic_associated_types)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
10 error[E0271]: type mismatch resolving `<{integer} as Fun>::F<'_> == [u8]`
11 --> $DIR/issue-74684-2.rs:24:5
13 LL | fn bug<'a, T: ?Sized + Fun<F<'a> = [u8]>>(t: Box<T>) -> &'static T::F<'a> {
14 | ------------ required by this bound in `bug`
16 LL | bug(Box::new(x));
17 | ^^^ expected slice `[u8]`, found `i32`
19 error: aborting due to previous error; 1 warning emitted
21 For more information about this error, try `rustc --explain E0271`.