summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/unused_braces.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/unused_braces.stderr')
-rw-r--r--tests/ui/const-generics/unused_braces.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/const-generics/unused_braces.stderr b/tests/ui/const-generics/unused_braces.stderr
new file mode 100644
index 000000000..2c8031c43
--- /dev/null
+++ b/tests/ui/const-generics/unused_braces.stderr
@@ -0,0 +1,19 @@
+warning: unnecessary braces around const expression
+ --> $DIR/unused_braces.rs:15:14
+ |
+LL | let _: A<{ 7 }>;
+ | ^^ ^^
+ |
+note: the lint level is defined here
+ --> $DIR/unused_braces.rs:3:9
+ |
+LL | #![warn(unused_braces)]
+ | ^^^^^^^^^^^^^
+help: remove these braces
+ |
+LL - let _: A<{ 7 }>;
+LL + let _: A<7>;
+ |
+
+warning: 1 warning emitted
+