]>
Commit | Line | Data |
---|---|---|
94222f64 | 1 | error: `~const` is not allowed here |
2b03887a | 2 | --> $DIR/tilde-const-invalid-places.rs:9:19 |
94222f64 XL |
3 | | |
4 | LL | fn rpit() -> impl ~const T { S } | |
5 | | ^^^^^^^^ | |
6 | | | |
2b03887a | 7 | = note: `impl Trait`s cannot have `~const` trait bounds |
94222f64 XL |
8 | |
9 | error: `~const` is not allowed here | |
2b03887a | 10 | --> $DIR/tilde-const-invalid-places.rs:12:17 |
94222f64 XL |
11 | | |
12 | LL | fn apit(_: impl ~const T) {} | |
13 | | ^^^^^^^^ | |
14 | | | |
2b03887a | 15 | = note: `impl Trait`s cannot have `~const` trait bounds |
94222f64 XL |
16 | |
17 | error: `~const` is not allowed here | |
2b03887a | 18 | --> $DIR/tilde-const-invalid-places.rs:15:50 |
94222f64 XL |
19 | | |
20 | LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ~const T> { Some(S) } | |
21 | | ^^^^^^^^ | |
22 | | | |
2b03887a | 23 | = note: `impl Trait`s cannot have `~const` trait bounds |
94222f64 XL |
24 | |
25 | error: `~const` is not allowed here | |
2b03887a | 26 | --> $DIR/tilde-const-invalid-places.rs:18:48 |
94222f64 XL |
27 | | |
28 | LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ~const T>) {} | |
29 | | ^^^^^^^^ | |
30 | | | |
2b03887a | 31 | = note: `impl Trait`s cannot have `~const` trait bounds |
94222f64 XL |
32 | |
33 | error: `~const` and `?` are mutually exclusive | |
2b03887a | 34 | --> $DIR/tilde-const-invalid-places.rs:21:25 |
94222f64 XL |
35 | | |
36 | LL | struct TildeQuestion<T: ~const ?Sized>(std::marker::PhantomData<T>); | |
37 | | ^^^^^^^^^^^^^ | |
38 | ||
2b03887a | 39 | error: aborting due to 5 previous errors |
94222f64 | 40 |