From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../params-in-ct-in-ty-param-lazy-norm.full.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr (limited to 'src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr') diff --git a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr b/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr new file mode 100644 index 000000000..9f0b2efae --- /dev/null +++ b/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr @@ -0,0 +1,15 @@ +error: generic parameters with a default must be trailing + --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:12 + | +LL | struct Bar(T); + | ^ + +error[E0128]: generic parameters with a default cannot use forward declared identifiers + --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:21 + | +LL | struct Bar(T); + | ^ defaulted generic parameters cannot be forward declared + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0128`. -- cgit v1.2.3