]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error[E0658]: generic associated types are unstable |
0731742a | 2 | --> $DIR/feature-gate-generic_associated_types.rs:4:5 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | type Pointer<T>: Deref<Target = T>; |
ff7c6d11 XL |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | | | |
74b04a01 | 7 | = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
416331ca | 8 | = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable |
ff7c6d11 | 9 | |
48663c56 | 10 | error[E0658]: generic associated types are unstable |
f035d41b | 11 | --> $DIR/feature-gate-generic_associated_types.rs:6:5 |
ff7c6d11 | 12 | | |
0531ce1d XL |
13 | LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone; |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
15 | | | |
74b04a01 | 16 | = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
416331ca | 17 | = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable |
0531ce1d | 18 | |
48663c56 | 19 | error[E0658]: where clauses on associated types are unstable |
f035d41b | 20 | --> $DIR/feature-gate-generic_associated_types.rs:6:5 |
0531ce1d XL |
21 | | |
22 | LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone; | |
ff7c6d11 XL |
23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
24 | | | |
74b04a01 | 25 | = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
416331ca | 26 | = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable |
ff7c6d11 | 27 | |
48663c56 | 28 | error[E0658]: generic associated types are unstable |
f035d41b | 29 | --> $DIR/feature-gate-generic_associated_types.rs:14:5 |
ff7c6d11 | 30 | | |
0731742a | 31 | LL | type Pointer<Usize> = Box<Usize>; |
ff7c6d11 XL |
32 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
33 | | | |
74b04a01 | 34 | = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
416331ca | 35 | = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable |
ff7c6d11 | 36 | |
48663c56 | 37 | error[E0658]: generic associated types are unstable |
f035d41b | 38 | --> $DIR/feature-gate-generic_associated_types.rs:16:5 |
ff7c6d11 | 39 | | |
0731742a | 40 | LL | type Pointer2<U32> = Box<U32>; |
ff7c6d11 XL |
41 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
42 | | | |
74b04a01 | 43 | = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
416331ca | 44 | = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable |
ff7c6d11 | 45 | |
48663c56 | 46 | error[E0658]: where clauses on associated types are unstable |
29967ef6 | 47 | --> $DIR/feature-gate-generic_associated_types.rs:22:5 |
0531ce1d XL |
48 | | |
49 | LL | type Assoc where Self: Sized; | |
50 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
51 | | | |
74b04a01 | 52 | = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
416331ca | 53 | = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable |
0531ce1d | 54 | |
48663c56 | 55 | error[E0658]: where clauses on associated types are unstable |
29967ef6 | 56 | --> $DIR/feature-gate-generic_associated_types.rs:27:5 |
8faf50e0 | 57 | | |
5e7ed085 | 58 | LL | type Assoc = Foo where Self: Sized; |
8faf50e0 XL |
59 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
60 | | | |
74b04a01 | 61 | = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
416331ca | 62 | = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable |
8faf50e0 | 63 | |
29967ef6 | 64 | error[E0277]: the trait bound `U32: Clone` is not satisfied |
a2a8927a | 65 | --> $DIR/feature-gate-generic_associated_types.rs:16:26 |
29967ef6 XL |
66 | | |
67 | LL | type Pointer2<U32> = Box<U32>; | |
a2a8927a | 68 | | ^^^^^^^^ the trait `Clone` is not implemented for `U32` |
29967ef6 XL |
69 | | |
70 | help: consider restricting type parameter `U32` | |
71 | | | |
cdc7bbd5 | 72 | LL | type Pointer2<U32: std::clone::Clone> = Box<U32>; |
94222f64 | 73 | | +++++++++++++++++++ |
29967ef6 XL |
74 | |
75 | error: aborting due to 8 previous errors | |
ff7c6d11 | 76 | |
29967ef6 XL |
77 | Some errors have detailed explanations: E0277, E0658. |
78 | For more information about an error, try `rustc --explain E0277`. |