]> git.lizzy.rs Git - rust.git/blob - tests/target/space-before-type-annotation.rs
Fix bug in identifying comments
[rust.git] / tests / target / space-before-type-annotation.rs
1 // rustfmt-space_before_type_annotation: true
2
3 static staticVar : i32 = 42;
4 const constVar : i32 = 42;
5 fn foo(paramVar : i32) {
6     let localVar : i32 = 42;
7 }
8 struct S {
9     fieldVar : i32,
10 }
11 fn f() {
12     S { fieldVar : 42 }
13 }