]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-dont-ice-on-absent-feature.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / gat-dont-ice-on-absent-feature.stderr
1 error[E0658]: generic associated types are unstable
2   --> $DIR/gat-dont-ice-on-absent-feature.rs:7:5
3    |
4 LL |     type Item<'b> = &'b Foo;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
8    = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
9
10 error[E0195]: lifetime parameters or bounds on type `Item` do not match the trait declaration
11   --> $DIR/gat-dont-ice-on-absent-feature.rs:7:14
12    |
13 LL |     type Item<'b> = &'b Foo;
14    |              ^^^^ lifetimes do not match type in trait
15
16 error: aborting due to 2 previous errors
17
18 Some errors have detailed explanations: E0195, E0658.
19 For more information about an error, try `rustc --explain E0195`.