]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/incorrect-number-of-const-args.stderr
Auto merge of #75257 - ssomers:btree_74762_again, r=Mark-Simulacrum
[rust.git] / src / test / ui / const-generics / incorrect-number-of-const-args.stderr
1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/incorrect-number-of-const-args.rs:1:12
3    |
4 LL | #![feature(const_generics)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9
10 error[E0107]: wrong number of const arguments: expected 2, found 1
11   --> $DIR/incorrect-number-of-const-args.rs:9:5
12    |
13 LL |     foo::<0>();
14    |     ^^^^^^^^ expected 2 const arguments
15
16 error[E0107]: wrong number of const arguments: expected 2, found 3
17   --> $DIR/incorrect-number-of-const-args.rs:10:17
18    |
19 LL |     foo::<0, 0, 0>();
20    |                 ^ unexpected const argument
21
22 error: aborting due to 2 previous errors; 1 warning emitted
23
24 For more information about this error, try `rustc --explain E0107`.