]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-68648-2.stderr
Rollup merge of #82308 - estebank:issue-82290, r=lcnr
[rust.git] / src / test / ui / generic-associated-types / issue-68648-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-68648-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[E0308]: mismatched types
11   --> $DIR/issue-68648-2.rs:15:17
12    |
13 LL | fn bug<'a, T: Fun<F<'a> = T>>(t: T) -> T::F<'a> {
14    |            - this type parameter
15 LL |     T::identity(())
16    |                 ^^ expected type parameter `T`, found `()`
17    |
18    = note: expected type parameter `T`
19                    found unit type `()`
20
21 error: aborting due to previous error; 1 warning emitted
22
23 For more information about this error, try `rustc --explain E0308`.