]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/invalid-constant-in-args.stderr
Rollup merge of #78361 - DevJPM:master, r=workingjubilee
[rust.git] / src / test / ui / const-generics / invalid-constant-in-args.stderr
1 error[E0107]: wrong number of generic arguments: expected 1, found 2
2   --> $DIR/invalid-constant-in-args.rs:2:22
3    |
4 LL |     let _: Vec<&str, "a"> = Vec::new();
5    |                      ^^^ unexpected const argument
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0107`.