]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/bound-normalization-fail.stderr
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / bound-normalization-fail.stderr
CommitLineData
416331ca
XL
1warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
2 --> $DIR/bound-normalization-fail.rs:5:12
3 |
4LL | #![feature(impl_trait_in_bindings)]
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8
9error[E0271]: type mismatch resolving `<Foo<()> as FooLike>::Output == <T as impl_trait::Trait>::Assoc`
10 --> $DIR/bound-normalization-fail.rs:29:32
11 |
12LL | 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
19error[E0271]: type mismatch resolving `<Foo<()> as FooLike>::Output == <T as lifetimes::Trait<'static>>::Assoc`
20 --> $DIR/bound-normalization-fail.rs:46:41
21 |
22LL | 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
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0271`.