summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/early/const-param-shadowing.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/early/const-param-shadowing.stderr')
-rw-r--r--src/test/ui/const-generics/early/const-param-shadowing.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/early/const-param-shadowing.stderr b/src/test/ui/const-generics/early/const-param-shadowing.stderr
new file mode 100644
index 000000000..625338bd9
--- /dev/null
+++ b/src/test/ui/const-generics/early/const-param-shadowing.stderr
@@ -0,0 +1,14 @@
+error[E0747]: type provided when a constant was expected
+ --> $DIR/const-param-shadowing.rs:3:34
+ |
+LL | fn test<const N: usize>() -> Foo<N> {
+ | ^
+ |
+help: if this generic argument was intended as a const parameter, surround it with braces
+ |
+LL | fn test<const N: usize>() -> Foo<{ N }> {
+ | + +
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0747`.