]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
1 | error[E0658]: associated type bounds are unstable |
2 | --> $DIR/feature-gate-associated_type_bounds.rs:12:22 | |
3 | | | |
4 | LL | type A: Iterator<Item: Copy>; | |
5 | | ^^^^^^^^^^ | |
6 | | | |
7 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 8 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
9 | |
10 | error[E0658]: associated type bounds are unstable | |
11 | --> $DIR/feature-gate-associated_type_bounds.rs:15:22 | |
12 | | | |
13 | LL | type B: Iterator<Item: 'static>; | |
14 | | ^^^^^^^^^^^^^ | |
15 | | | |
16 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 17 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
18 | |
19 | error[E0658]: associated type bounds are unstable | |
20 | --> $DIR/feature-gate-associated_type_bounds.rs:19:20 | |
21 | | | |
22 | LL | struct _St1<T: Tr1<As1: Tr2>> { | |
23 | | ^^^^^^^^ | |
24 | | | |
25 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 26 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
27 | |
28 | error[E0658]: associated type bounds are unstable | |
29 | --> $DIR/feature-gate-associated_type_bounds.rs:26:18 | |
30 | | | |
31 | LL | enum _En1<T: Tr1<As1: Tr2>> { | |
32 | | ^^^^^^^^ | |
33 | | | |
34 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 35 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
36 | |
37 | error[E0658]: associated type bounds are unstable | |
38 | --> $DIR/feature-gate-associated_type_bounds.rs:33:19 | |
39 | | | |
40 | LL | union _Un1<T: Tr1<As1: Tr2>> { | |
41 | | ^^^^^^^^ | |
42 | | | |
43 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 44 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
45 | |
46 | error[E0658]: associated type bounds are unstable | |
47 | --> $DIR/feature-gate-associated_type_bounds.rs:40:37 | |
48 | | | |
49 | LL | type _TaWhere1<T> where T: Iterator<Item: Copy> = T; | |
50 | | ^^^^^^^^^^ | |
51 | | | |
52 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 53 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
54 | |
55 | error[E0658]: associated type bounds are unstable | |
56 | --> $DIR/feature-gate-associated_type_bounds.rs:43:22 | |
57 | | | |
58 | LL | fn _apit(_: impl Tr1<As1: Copy>) {} | |
59 | | ^^^^^^^^^ | |
60 | | | |
61 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 62 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
63 | |
64 | error[E0658]: associated type bounds are unstable | |
65 | --> $DIR/feature-gate-associated_type_bounds.rs:45:26 | |
66 | | | |
67 | LL | fn _apit_dyn(_: &dyn Tr1<As1: Copy>) {} | |
68 | | ^^^^^^^^^ | |
69 | | | |
70 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 71 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
72 | |
73 | error[E0658]: associated type bounds are unstable | |
74 | --> $DIR/feature-gate-associated_type_bounds.rs:48:24 | |
75 | | | |
76 | LL | fn _rpit() -> impl Tr1<As1: Copy> { S1 } | |
77 | | ^^^^^^^^^ | |
78 | | | |
79 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 80 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
81 | |
82 | error[E0658]: associated type bounds are unstable | |
83 | --> $DIR/feature-gate-associated_type_bounds.rs:51:31 | |
84 | | | |
85 | LL | fn _rpit_dyn() -> Box<dyn Tr1<As1: Copy>> { Box::new(S1) } | |
86 | | ^^^^^^^^^ | |
87 | | | |
88 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 89 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
90 | |
91 | error[E0658]: associated type bounds are unstable | |
92 | --> $DIR/feature-gate-associated_type_bounds.rs:54:23 | |
93 | | | |
94 | LL | const _cdef: impl Tr1<As1: Copy> = S1; | |
95 | | ^^^^^^^^^ | |
96 | | | |
97 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 98 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
99 | |
100 | error[E0658]: associated type bounds are unstable | |
101 | --> $DIR/feature-gate-associated_type_bounds.rs:60:24 | |
102 | | | |
103 | LL | static _sdef: impl Tr1<As1: Copy> = S1; | |
104 | | ^^^^^^^^^ | |
105 | | | |
106 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 107 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
108 | |
109 | error[E0658]: associated type bounds are unstable | |
110 | --> $DIR/feature-gate-associated_type_bounds.rs:67:21 | |
111 | | | |
112 | LL | let _: impl Tr1<As1: Copy> = S1; | |
113 | | ^^^^^^^^^ | |
114 | | | |
115 | = note: for more information, see https://github.com/rust-lang/rust/issues/52662 | |
416331ca | 116 | = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable |
dc9dc135 XL |
117 | |
118 | error[E0562]: `impl Trait` not allowed outside of function and inherent method return types | |
119 | --> $DIR/feature-gate-associated_type_bounds.rs:54:14 | |
120 | | | |
121 | LL | const _cdef: impl Tr1<As1: Copy> = S1; | |
122 | | ^^^^^^^^^^^^^^^^^^^ | |
123 | | | |
416331ca | 124 | = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable |
dc9dc135 XL |
125 | |
126 | error[E0562]: `impl Trait` not allowed outside of function and inherent method return types | |
127 | --> $DIR/feature-gate-associated_type_bounds.rs:60:15 | |
128 | | | |
129 | LL | static _sdef: impl Tr1<As1: Copy> = S1; | |
130 | | ^^^^^^^^^^^^^^^^^^^ | |
131 | | | |
416331ca | 132 | = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable |
dc9dc135 XL |
133 | |
134 | error[E0562]: `impl Trait` not allowed outside of function and inherent method return types | |
135 | --> $DIR/feature-gate-associated_type_bounds.rs:67:12 | |
136 | | | |
137 | LL | let _: impl Tr1<As1: Copy> = S1; | |
138 | | ^^^^^^^^^^^^^^^^^^^ | |
139 | | | |
416331ca | 140 | = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable |
dc9dc135 XL |
141 | |
142 | error: aborting due to 16 previous errors | |
143 | ||
144 | Some errors have detailed explanations: E0562, E0658. | |
145 | For more information about an error, try `rustc --explain E0562`. |