rust/src/test/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-08-25 15:21:55 +00:00
error: `~const` is not allowed here
--> $DIR/tilde-const-invalid-places.rs:9:19
2021-08-25 15:21:55 +00:00
|
LL | fn rpit() -> impl ~const T { S }
| ^^^^^^^^
|
= note: `impl Trait`s cannot have `~const` trait bounds
2021-08-25 15:21:55 +00:00
error: `~const` is not allowed here
--> $DIR/tilde-const-invalid-places.rs:12:17
2021-08-25 15:21:55 +00:00
|
LL | fn apit(_: impl ~const T) {}
| ^^^^^^^^
|
= note: `impl Trait`s cannot have `~const` trait bounds
2021-08-25 15:21:55 +00:00
error: `~const` is not allowed here
--> $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) }
| ^^^^^^^^
|
= note: `impl Trait`s cannot have `~const` trait bounds
2021-08-25 15:21:55 +00:00
error: `~const` is not allowed here
--> $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>) {}
| ^^^^^^^^
|
= note: `impl Trait`s cannot have `~const` trait bounds
2021-08-25 15:21:55 +00:00
error: `~const` and `?` are mutually exclusive
--> $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>);
| ^^^^^^^^^^^^^
error: aborting due to 5 previous errors
2021-08-25 15:21:55 +00:00