@@ -4,47 +4,47 @@ error: `~const` is not allowed here
44LL | fn rpit() -> impl ~const T { S }
55 | ^^^^^^^^
66 |
7- = note: only allowed on bounds on traits' associated types, const fns, const impls and its associated functions
7+ = note: only allowed on bounds on traits' associated types and functions , const fns, const impls and its associated functions
88
99error: `~const` is not allowed here
1010 --> $DIR/tilde-const-invalid-places.rs:11:17
1111 |
1212LL | fn apit(_: impl ~const T) {}
1313 | ^^^^^^^^
1414 |
15- = note: only allowed on bounds on traits' associated types, const fns, const impls and its associated functions
15+ = note: only allowed on bounds on traits' associated types and functions , const fns, const impls and its associated functions
1616
1717error: `~const` is not allowed here
1818 --> $DIR/tilde-const-invalid-places.rs:14:50
1919 |
2020LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ~const T> { Some(S) }
2121 | ^^^^^^^^
2222 |
23- = note: only allowed on bounds on traits' associated types, const fns, const impls and its associated functions
23+ = note: only allowed on bounds on traits' associated types and functions , const fns, const impls and its associated functions
2424
2525error: `~const` is not allowed here
2626 --> $DIR/tilde-const-invalid-places.rs:17:48
2727 |
2828LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ~const T>) {}
2929 | ^^^^^^^^
3030 |
31- = note: only allowed on bounds on traits' associated types, const fns, const impls and its associated functions
31+ = note: only allowed on bounds on traits' associated types and functions , const fns, const impls and its associated functions
3232
3333error: `~const` is not allowed here
3434 --> $DIR/tilde-const-invalid-places.rs:20:15
3535 |
3636LL | fn generic<P: ~const T>() {}
3737 | ^^^^^^^^
3838 |
39- = note: only allowed on bounds on traits' associated types, const fns, const impls and its associated functions
39+ = note: only allowed on bounds on traits' associated types and functions , const fns, const impls and its associated functions
4040
4141error: `~const` is not allowed here
4242 --> $DIR/tilde-const-invalid-places.rs:23:31
4343 |
4444LL | fn where_clause<P>() where P: ~const T {}
4545 | ^^^^^^^^
4646 |
47- = note: only allowed on bounds on traits' associated types, const fns, const impls and its associated functions
47+ = note: only allowed on bounds on traits' associated types and functions , const fns, const impls and its associated functions
4848
4949error: `~const` and `?` are mutually exclusive
5050 --> $DIR/tilde-const-invalid-places.rs:26:25
0 commit comments