]> git.proxmox.com Git - rustc.git/blame_incremental - src/test/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / tilde-const-invalid-places.stderr
... / ...
CommitLineData
1error: `~const` is not allowed here
2 --> $DIR/tilde-const-invalid-places.rs:9:19
3 |
4LL | fn rpit() -> impl ~const T { S }
5 | ^^^^^^^^
6 |
7 = note: `impl Trait`s cannot have `~const` trait bounds
8
9error: `~const` is not allowed here
10 --> $DIR/tilde-const-invalid-places.rs:12:17
11 |
12LL | fn apit(_: impl ~const T) {}
13 | ^^^^^^^^
14 |
15 = note: `impl Trait`s cannot have `~const` trait bounds
16
17error: `~const` is not allowed here
18 --> $DIR/tilde-const-invalid-places.rs:15:50
19 |
20LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ~const T> { Some(S) }
21 | ^^^^^^^^
22 |
23 = note: `impl Trait`s cannot have `~const` trait bounds
24
25error: `~const` is not allowed here
26 --> $DIR/tilde-const-invalid-places.rs:18:48
27 |
28LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ~const T>) {}
29 | ^^^^^^^^
30 |
31 = note: `impl Trait`s cannot have `~const` trait bounds
32
33error: `~const` and `?` are mutually exclusive
34 --> $DIR/tilde-const-invalid-places.rs:21:25
35 |
36LL | struct TildeQuestion<T: ~const ?Sized>(std::marker::PhantomData<T>);
37 | ^^^^^^^^^^^^^
38
39error: aborting due to 5 previous errors
40