fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `~const` is not allowed here 2 --> $DIR/const-bound-on-not-const-associated-fn.rs:9:40 3 | 4LL | fn do_something_else() where Self: ~const MyTrait; 5 | ^^^^^^^^^^^^^^ 6 | 7note: this function is not `const`, so it cannot have `~const` trait bounds 8 --> $DIR/const-bound-on-not-const-associated-fn.rs:9:8 9 | 10LL | fn do_something_else() where Self: ~const MyTrait; 11 | ^^^^^^^^^^^^^^^^^ 12 13error: `~const` is not allowed here 14 --> $DIR/const-bound-on-not-const-associated-fn.rs:20:32 15 | 16LL | pub fn foo(&self) where T: ~const MyTrait { 17 | ^^^^^^^^^^^^^^ 18 | 19note: this function is not `const`, so it cannot have `~const` trait bounds 20 --> $DIR/const-bound-on-not-const-associated-fn.rs:20:12 21 | 22LL | pub fn foo(&self) where T: ~const MyTrait { 23 | ^^^ 24 25error: aborting due to 2 previous errors 26