diff options
Diffstat (limited to 'src/test/ui/const-generics/type-after-const-ok.min.stderr')
-rw-r--r-- | src/test/ui/const-generics/type-after-const-ok.min.stderr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/type-after-const-ok.min.stderr b/src/test/ui/const-generics/type-after-const-ok.min.stderr new file mode 100644 index 000000000..ad38754c7 --- /dev/null +++ b/src/test/ui/const-generics/type-after-const-ok.min.stderr @@ -0,0 +1,8 @@ +error: type parameters must be declared prior to const parameters + --> $DIR/type-after-const-ok.rs:8:26 + | +LL | struct A<const N: usize, T>(T); + | -----------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const N: usize>` + +error: aborting due to previous error + |