]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-74684-2.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-74684-2.stderr
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
3 |
4 LL | #![feature(generic_associated_types)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
9
10 error[E0271]: type mismatch resolving `<{integer} as Fun>::F<'_> == [u8]`
11 --> $DIR/issue-74684-2.rs:24:5
12 |
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`
15 ...
16 LL | bug(Box::new(x));
17 | ^^^ expected slice `[u8]`, found `i32`
18
19 error: aborting due to previous error; 1 warning emitted
20
21 For more information about this error, try `rustc --explain E0271`.