]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-generic_associated_types.stderr
Rollup merge of #94449 - GuillaumeGomez:explanation-e0726, r=Urgau
[rust.git] / src / test / ui / feature-gates / feature-gate-generic_associated_types.stderr
1 error[E0658]: generic associated types are unstable
2   --> $DIR/feature-gate-generic_associated_types.rs:4:5
3    |
4 LL |     type Pointer<T>: Deref<Target = T>;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
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
9
10 error[E0658]: generic associated types are unstable
11   --> $DIR/feature-gate-generic_associated_types.rs:6:5
12    |
13 LL |     type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
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
18
19 error[E0658]: where clauses on associated types are unstable
20   --> $DIR/feature-gate-generic_associated_types.rs:6:5
21    |
22 LL |     type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
23    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24    |
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
27
28 error[E0658]: generic associated types are unstable
29   --> $DIR/feature-gate-generic_associated_types.rs:14:5
30    |
31 LL |     type Pointer<Usize> = Box<Usize>;
32    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33    |
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
36
37 error[E0658]: generic associated types are unstable
38   --> $DIR/feature-gate-generic_associated_types.rs:16:5
39    |
40 LL |     type Pointer2<U32> = Box<U32>;
41    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42    |
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
45
46 error[E0658]: where clauses on associated types are unstable
47   --> $DIR/feature-gate-generic_associated_types.rs:22:5
48    |
49 LL |     type Assoc where Self: Sized;
50    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51    |
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
54
55 error[E0658]: where clauses on associated types are unstable
56   --> $DIR/feature-gate-generic_associated_types.rs:27:5
57    |
58 LL |     type Assoc where Self: Sized = Foo;
59    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60    |
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
63
64 error[E0277]: the trait bound `U32: Clone` is not satisfied
65   --> $DIR/feature-gate-generic_associated_types.rs:16:26
66    |
67 LL |     type Pointer2<U32> = Box<U32>;
68    |                          ^^^^^^^^ the trait `Clone` is not implemented for `U32`
69    |
70 help: consider restricting type parameter `U32`
71    |
72 LL |     type Pointer2<U32: std::clone::Clone> = Box<U32>;
73    |                      +++++++++++++++++++
74
75 error: aborting due to 8 previous errors
76
77 Some errors have detailed explanations: E0277, E0658.
78 For more information about an error, try `rustc --explain E0277`.