]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-74684-2.stderr
Rollup merge of #91593 - upsuper-forks:hashmap-set-methods-bound, r=dtolnay
[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    |     ^^^ type mismatch resolving `<{integer} as Fun>::F<'_> == [u8]`
6    |
7 note: expected this to be `[u8]`
8   --> $DIR/issue-74684-2.rs:10:18
9    |
10 LL |     type F<'a> = i32;
11    |                  ^^^
12 note: required by a bound in `bug`
13   --> $DIR/issue-74684-2.rs:13:28
14    |
15 LL | fn bug<'a, T: ?Sized + Fun<F<'a> = [u8]>>(t: Box<T>) -> &'static T::F<'a> {
16    |                            ^^^^^^^^^^^^ required by this bound in `bug`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0271`.