about summary refs log tree commit diff
path: root/tests/ui/parser/suggest-const-for-global-var.stderr
blob: 6ac7fe8f0921b630cc88f2f4596678bc6c90d73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected item, found keyword `let`
  --> $DIR/suggest-const-for-global-var.rs:1:1
   |
LL | let X: i32 = 12;
   | ^^^
   | |
   | `let` cannot be used for global variables
   | help: consider using `static` or `const` instead of `let`
   |
   = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: aborting due to 1 previous error