2021-08-25 15:21:55 +00:00
|
|
|
error: `~const` is not allowed here
|
2022-10-03 17:08:42 +00:00
|
|
|
--> $DIR/tilde-const-invalid-places.rs:9:19
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
|
LL | fn rpit() -> impl ~const T { S }
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-10-20 19:32:16 +00:00
|
|
|
= note: `impl Trait`s cannot have `~const` trait bounds
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
error: `~const` is not allowed here
|
2022-10-03 17:08:42 +00:00
|
|
|
--> $DIR/tilde-const-invalid-places.rs:12:17
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
|
LL | fn apit(_: impl ~const T) {}
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-10-20 19:32:16 +00:00
|
|
|
= note: `impl Trait`s cannot have `~const` trait bounds
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
error: `~const` is not allowed here
|
2022-10-03 17:08:42 +00:00
|
|
|
--> $DIR/tilde-const-invalid-places.rs:15:50
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
|
LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ~const T> { Some(S) }
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-10-20 19:32:16 +00:00
|
|
|
= note: `impl Trait`s cannot have `~const` trait bounds
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
error: `~const` is not allowed here
|
2022-10-03 17:08:42 +00:00
|
|
|
--> $DIR/tilde-const-invalid-places.rs:18:48
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
|
LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ~const T>) {}
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-10-20 19:32:16 +00:00
|
|
|
= note: `impl Trait`s cannot have `~const` trait bounds
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
error: `~const` and `?` are mutually exclusive
|
2022-10-03 17:08:42 +00:00
|
|
|
--> $DIR/tilde-const-invalid-places.rs:21:25
|
2021-08-25 15:21:55 +00:00
|
|
|
|
|
|
|
|
LL | struct TildeQuestion<T: ~const ?Sized>(std::marker::PhantomData<T>);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2022-09-26 05:00:31 +00:00
|
|
|
error: aborting due to 5 previous errors
|
2021-08-25 15:21:55 +00:00
|
|
|
|