1 error[E0658]: generic associated types are unstable
2 --> $DIR/feature-gate-generic_associated_types.rs:4:5
4 LL | type Pointer<T>: Deref<Target = T>;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
8 = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
10 error[E0658]: generic associated types are unstable
11 --> $DIR/feature-gate-generic_associated_types.rs:6:5
13 LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
17 = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
19 error[E0658]: where clauses on associated types are unstable
20 --> $DIR/feature-gate-generic_associated_types.rs:6:5
22 LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
26 = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
28 error[E0658]: generic associated types are unstable
29 --> $DIR/feature-gate-generic_associated_types.rs:14:5
31 LL | type Pointer<Usize> = Box<Usize>;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
35 = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
37 error[E0658]: generic associated types are unstable
38 --> $DIR/feature-gate-generic_associated_types.rs:16:5
40 LL | type Pointer2<U32> = Box<U32>;
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
44 = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
46 error[E0658]: where clauses on associated types are unstable
47 --> $DIR/feature-gate-generic_associated_types.rs:22:5
49 LL | type Assoc where Self: Sized;
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
53 = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
55 error[E0658]: where clauses on associated types are unstable
56 --> $DIR/feature-gate-generic_associated_types.rs:27:5
58 LL | type Assoc where Self: Sized = Foo;
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
62 = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
64 error[E0277]: the trait bound `U32: Clone` is not satisfied
65 --> $DIR/feature-gate-generic_associated_types.rs:16:26
67 LL | type Pointer2<U32> = Box<U32>;
68 | ^^^^^^^^ the trait `Clone` is not implemented for `U32`
70 help: consider restricting type parameter `U32`
72 LL | type Pointer2<U32: std::clone::Clone> = Box<U32>;
75 error: aborting due to 8 previous errors
77 Some errors have detailed explanations: E0277, E0658.
78 For more information about an error, try `rustc --explain E0277`.