fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
869 B20 linesraw
1warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
2  --> $DIR/const-block-is-poly.rs:1:26
3   |
4LL | #![feature(inline_const, 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: overly complex generic constant
11  --> $DIR/const-block-is-poly.rs:5:19
12   |
13LL |     let _ = [0u8; const { std::mem::size_of::<T>() }];
14   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ const blocks are not supported in generic constants
15   |
16   = help: consider moving this anonymous constant into a `const` function
17   = note: this operation may be supported in the future
18
19error: aborting due to previous error; 1 warning emitted
20