fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes 2 --> $DIR/constifconst-call-in-const-position.rs:3:30 3 | 4LL | #![feature(const_trait_impl, generic_const_exprs)] 5 | ^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information 8 = note: `#[warn(incomplete_features)]` on by default 9 10error[E0015]: cannot call non-const fn `<T as Tr>::a` in constants 11 --> $DIR/constifconst-call-in-const-position.rs:17:9 12 | 13LL | [0; T::a()] 14 | ^^^^^^ 15 | 16 = note: calls in constants are limited to constant functions, tuple structs and tuple variants 17 18error[E0015]: cannot call non-const fn `<T as Tr>::a` in constants 19 --> $DIR/constifconst-call-in-const-position.rs:16:38 20 | 21LL | const fn foo<T: ~const Tr>() -> [u8; T::a()] { 22 | ^^^^^^ 23 | 24 = note: calls in constants are limited to constant functions, tuple structs and tuple variants 25 26error: aborting due to 2 previous errors; 1 warning emitted 27 28For more information about this error, try `rustc --explain E0015`.