]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/bounds-are-checked-2.full_tait.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / type-alias-impl-trait / bounds-are-checked-2.full_tait.stderr
CommitLineData
6a06907d
XL
1warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/bounds-are-checked-2.rs:6:32
3 |
4LL | #![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
10error[E0277]: the trait bound `T: Clone` is not satisfied
11 --> $DIR/bounds-are-checked-2.rs:9:13
12 |
13LL | type X<T> = impl Clone;
14 | ^^^^^^^^^^ the trait `Clone` is not implemented for `T`
15 |
16help: consider restricting type parameter `T`
17 |
18LL | type X<T: Clone> = impl Clone;
19 | ^^^^^^^
20
21error: aborting due to previous error; 1 warning emitted
22
23For more information about this error, try `rustc --explain E0277`.