summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/suggest-const-for-global-var.stderr
blob: 94e44ec7f6ce1de4a2cb7198820b02da71c185e4 (plain)
1
2
3
4
5
6
7
8
error: expected item, found keyword `let`
  --> $DIR/suggest-const-for-global-var.rs:1:1
   |
LL | let X: i32 = 12;
   | ^^^ consider using `const` or `static` instead of `let` for global variables

error: aborting due to previous error