]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-74684-2.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / 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:21:9
3    |
4 LL |     bug(Box::new(x));
5    |     --- ^^^^^^^^^^^ type mismatch resolving `<{integer} as Fun>::F<'_> == [u8]`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: expected this to be `[u8]`
10   --> $DIR/issue-74684-2.rs:8:18
11    |
12 LL |     type F<'a> = i32;
13    |                  ^^^
14 note: required by a bound in `bug`
15   --> $DIR/issue-74684-2.rs:11:28
16    |
17 LL | fn bug<'a, T: ?Sized + Fun<F<'a> = [u8]>>(t: Box<T>) -> &'static T::F<'a> {
18    |                            ^^^^^^^^^^^^ required by this bound in `bug`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0271`.