fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: ~const can only be applied to `#[const_trait]` traits 2 --> $DIR/const-closures.rs:8:19 3 | 4LL | F: ~const FnOnce() -> u8, 5 | ^^^^^^^^^^^^^^ 6 7error: ~const can only be applied to `#[const_trait]` traits 8 --> $DIR/const-closures.rs:9:19 9 | 10LL | F: ~const FnMut() -> u8, 11 | ^^^^^^^^^^^^^ 12 13error: ~const can only be applied to `#[const_trait]` traits 14 --> $DIR/const-closures.rs:10:19 15 | 16LL | F: ~const Fn() -> u8, 17 | ^^^^^^^^^^ 18 19error: ~const can only be applied to `#[const_trait]` traits 20 --> $DIR/const-closures.rs:23:27 21 | 22LL | const fn answer<F: ~const Fn() -> u8>(f: &F) -> u8 { 23 | ^^^^^^^^^^ 24 25error: aborting due to 4 previous errors 26