]> git.proxmox.com Git - rustc.git/blob - src/test/ui/specialization/deafult-associated-type-bound-1.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / specialization / deafult-associated-type-bound-1.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/deafult-associated-type-bound-1.rs:4:12
3 |
4 LL | #![feature(specialization)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9
10 error[E0277]: the trait bound `str: Clone` is not satisfied
11 --> $DIR/deafult-associated-type-bound-1.rs:18:5
12 |
13 LL | type U: Clone;
14 | -------------- required by `X::U`
15 ...
16 LL | default type U = str;
17 | ^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `str`
18
19 error: aborting due to previous error; 1 warning emitted
20
21 For more information about this error, try `rustc --explain E0277`.