]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-generic_associated_types.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-generic_associated_types.stderr
CommitLineData
48663c56 1error[E0658]: generic associated types are unstable
0731742a 2 --> $DIR/feature-gate-generic_associated_types.rs:4:5
ff7c6d11 3 |
0531ce1d 4LL | 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 10error[E0658]: generic associated types are unstable
f035d41b 11 --> $DIR/feature-gate-generic_associated_types.rs:6:5
ff7c6d11 12 |
0531ce1d
XL
13LL | 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 19error[E0658]: where clauses on associated types are unstable
f035d41b 20 --> $DIR/feature-gate-generic_associated_types.rs:6:5
0531ce1d
XL
21 |
22LL | 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 28error[E0658]: generic associated types are unstable
f035d41b 29 --> $DIR/feature-gate-generic_associated_types.rs:14:5
ff7c6d11 30 |
0731742a 31LL | 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 37error[E0658]: generic associated types are unstable
f035d41b 38 --> $DIR/feature-gate-generic_associated_types.rs:16:5
ff7c6d11 39 |
0731742a 40LL | 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 46error[E0658]: where clauses on associated types are unstable
29967ef6 47 --> $DIR/feature-gate-generic_associated_types.rs:22:5
0531ce1d
XL
48 |
49LL | 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 55error[E0658]: where clauses on associated types are unstable
29967ef6 56 --> $DIR/feature-gate-generic_associated_types.rs:27:5
8faf50e0 57 |
5e7ed085 58LL | 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 64error[E0277]: the trait bound `U32: Clone` is not satisfied
a2a8927a 65 --> $DIR/feature-gate-generic_associated_types.rs:16:26
29967ef6
XL
66 |
67LL | type Pointer2<U32> = Box<U32>;
a2a8927a 68 | ^^^^^^^^ the trait `Clone` is not implemented for `U32`
29967ef6
XL
69 |
70help: consider restricting type parameter `U32`
71 |
cdc7bbd5 72LL | type Pointer2<U32: std::clone::Clone> = Box<U32>;
94222f64 73 | +++++++++++++++++++
29967ef6
XL
74
75error: aborting due to 8 previous errors
ff7c6d11 76
29967ef6
XL
77Some errors have detailed explanations: E0277, E0658.
78For more information about an error, try `rustc --explain E0277`.