fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `~const` is not allowed here 2 --> $DIR/trait-where-clause.rs:8:24 3 | 4LL | fn b() where Self: ~const Bar; 5 | ^^^^^^^^^^ 6 | 7note: this function is not `const`, so it cannot have `~const` trait bounds 8 --> $DIR/trait-where-clause.rs:8:8 9 | 10LL | fn b() where Self: ~const Bar; 11 | ^ 12 13error: `~const` is not allowed here 14 --> $DIR/trait-where-clause.rs:10:13 15 | 16LL | fn c<T: ~const Bar>(); 17 | ^^^^^^^^^^ 18 | 19note: this function is not `const`, so it cannot have `~const` trait bounds 20 --> $DIR/trait-where-clause.rs:10:8 21 | 22LL | fn c<T: ~const Bar>(); 23 | ^ 24 25error[E0277]: the trait bound `T: Bar` is not satisfied 26 --> $DIR/trait-where-clause.rs:16:5 27 | 28LL | T::b(); 29 | ^ the trait `Bar` is not implemented for `T` 30 | 31note: required by a bound in `Foo::b` 32 --> $DIR/trait-where-clause.rs:8:24 33 | 34LL | fn b() where Self: ~const Bar; 35 | ^^^^^^^^^^ required by this bound in `Foo::b` 36help: consider further restricting this bound 37 | 38LL | fn test1<T: Foo + Bar>() { 39 | +++++ 40 41error[E0277]: the trait bound `T: Bar` is not satisfied 42 --> $DIR/trait-where-clause.rs:18:12 43 | 44LL | T::c::<T>(); 45 | ^ the trait `Bar` is not implemented for `T` 46 | 47note: required by a bound in `Foo::c` 48 --> $DIR/trait-where-clause.rs:10:13 49 | 50LL | fn c<T: ~const Bar>(); 51 | ^^^^^^^^^^ required by this bound in `Foo::c` 52help: consider further restricting this bound 53 | 54LL | fn test1<T: Foo + Bar>() { 55 | +++++ 56 57error: aborting due to 4 previous errors 58 59For more information about this error, try `rustc --explain E0277`.