]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/bound_reduction2.full_tait.stderr
Auto merge of #82980 - tmiasko:import-cold-multiplier, r=michaelwoerister
[rust.git] / src / test / ui / type-alias-impl-trait / bound_reduction2.full_tait.stderr
1 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/bound_reduction2.rs:3:32
3    |
4 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
5    |                                ^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
9
10 error: non-defining opaque type use in defining scope
11   --> $DIR/bound_reduction2.rs:18:46
12    |
13 LL | fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> {
14    |                                              ^^^^^^^^^^^^^
15    |
16 note: used non-generic type `<T as TraitWithAssoc>::Assoc` for generic parameter
17   --> $DIR/bound_reduction2.rs:12:10
18    |
19 LL | type Foo<V> = impl Trait<V>;
20    |          ^
21
22 error: aborting due to previous error; 1 warning emitted
23