]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issue-80471.stderr
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / const-generics / issue-80471.stderr
1 warning: the feature `adt_const_params` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/issue-80471.rs:1:12
3    |
4 LL | #![feature(adt_const_params)]
5    |            ^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #95174 <https://github.com/rust-lang/rust/issues/95174> for more information
8    = note: `#[warn(incomplete_features)]` on by default
9
10 error[E0741]: `Box<Nat>` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
11   --> $DIR/issue-80471.rs:10:17
12    |
13 LL | fn foo<const N: Nat>() {}
14    |                 ^^^
15
16 error: aborting due to previous error; 1 warning emitted
17
18 For more information about this error, try `rustc --explain E0741`.