1 error: `~const` is not allowed here
2 --> $DIR/tilde-const-invalid-places.rs:8:19
4 LL | fn rpit() -> impl ~const T { S }
7 = note: only allowed on bounds on traits' associated types and functions, const fns, const impls and its associated functions
9 error: `~const` is not allowed here
10 --> $DIR/tilde-const-invalid-places.rs:11:17
12 LL | fn apit(_: impl ~const T) {}
15 = note: only allowed on bounds on traits' associated types and functions, const fns, const impls and its associated functions
17 error: `~const` is not allowed here
18 --> $DIR/tilde-const-invalid-places.rs:14:50
20 LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ~const T> { Some(S) }
23 = note: only allowed on bounds on traits' associated types and functions, const fns, const impls and its associated functions
25 error: `~const` is not allowed here
26 --> $DIR/tilde-const-invalid-places.rs:17:48
28 LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ~const T>) {}
31 = note: only allowed on bounds on traits' associated types and functions, const fns, const impls and its associated functions
33 error: `~const` is not allowed here
34 --> $DIR/tilde-const-invalid-places.rs:20:15
36 LL | fn generic<P: ~const T>() {}
39 = note: only allowed on bounds on traits' associated types and functions, const fns, const impls and its associated functions
41 error: `~const` is not allowed here
42 --> $DIR/tilde-const-invalid-places.rs:23:31
44 LL | fn where_clause<P>() where P: ~const T {}
47 = note: only allowed on bounds on traits' associated types and functions, const fns, const impls and its associated functions
49 error: `~const` and `?` are mutually exclusive
50 --> $DIR/tilde-const-invalid-places.rs:26:25
52 LL | struct TildeQuestion<T: ~const ?Sized>(std::marker::PhantomData<T>);
55 error: aborting due to 7 previous errors