summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/suggest-const-for-global-var.stderr
blob: 235e621d8827bb4ef4b8b4ef5c4d05d76b6a4ad2 (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 1 previous error