summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/suggest-assoc-const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/suggest-assoc-const.rs')
-rw-r--r--src/test/ui/parser/suggest-assoc-const.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/parser/suggest-assoc-const.rs b/src/test/ui/parser/suggest-assoc-const.rs
new file mode 100644
index 000000000..c7be712ec
--- /dev/null
+++ b/src/test/ui/parser/suggest-assoc-const.rs
@@ -0,0 +1,10 @@
+// Issue: 101797, Suggest associated const for incorrect use of let in traits
+// run-rustfix
+trait Trait {
+ let _X: i32;
+ //~^ ERROR non-item in item list
+}
+
+fn main() {
+
+}