1 warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/promoted-function-2.rs:4:12
4 LL | #![feature(generic_const_exprs, rustc_attrs)]
7 = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
8 = note: `#[warn(incomplete_features)]` on by default
10 error: item has unused generic parameters
11 --> $DIR/promoted-function-2.rs:8:4
14 | ^^^^ - generic parameter `T` is unused
16 error: aborting due to 1 previous error; 1 warning emitted