]>
Commit | Line | Data |
---|---|---|
416331ca XL |
1 | warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash |
2 | --> $DIR/bound-normalization-fail.rs:5:12 | |
3 | | | |
4 | LL | #![feature(impl_trait_in_bindings)] | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `#[warn(incomplete_features)]` on by default | |
8 | ||
9 | error[E0271]: type mismatch resolving `<Foo<()> as FooLike>::Output == <T as impl_trait::Trait>::Assoc` | |
10 | --> $DIR/bound-normalization-fail.rs:29:32 | |
11 | | | |
12 | LL | fn foo_fail<T: Trait>() -> impl FooLike<Output=T::Assoc> { | |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found associated type | |
14 | | | |
15 | = note: expected type `()` | |
16 | found type `<T as impl_trait::Trait>::Assoc` | |
17 | = note: the return type of a function must have a statically known size | |
18 | ||
19 | error[E0271]: type mismatch resolving `<Foo<()> as FooLike>::Output == <T as lifetimes::Trait<'static>>::Assoc` | |
20 | --> $DIR/bound-normalization-fail.rs:46:41 | |
21 | | | |
22 | LL | fn foo2_fail<'a, T: Trait<'a>>() -> impl FooLike<Output=T::Assoc> { | |
23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found associated type | |
24 | | | |
25 | = note: expected type `()` | |
26 | found type `<T as lifetimes::Trait<'static>>::Assoc` | |
27 | = note: the return type of a function must have a statically known size | |
28 | ||
29 | error: aborting due to 2 previous errors | |
30 | ||
31 | For more information about this error, try `rustc --explain E0271`. |