blob: 290ef6e2f5fa05e0c14e27149c9e5b68346d361e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
error: `~const` is not allowed here
--> $DIR/assoc-type.rs:17:15
|
LL | type Bar: ~const std::ops::Add;
| ^^^^^^
|
= note: this item cannot have `~const` trait bounds
error: ~const can only be applied to `#[const_trait]` traits
--> $DIR/assoc-type.rs:17:22
|
LL | type Bar: ~const std::ops::Add;
| ^^^^^^^^^^^^^
error: aborting due to 2 previous errors
|