]> git.lizzy.rs Git - rust.git/blob - tests/source/space-not-after-type-annotation-colon.rs
Update tests
[rust.git] / tests / source / space-not-after-type-annotation-colon.rs
1 // rustfmt-space_before_type_annotation: true
2 // rustfmt-space_after_type_annotation_colon: false
3
4 static staticVar: i32 = 42;
5 const constVar: i32 = 42;
6 fn foo(paramVar: i32) {
7     let localVar: i32 = 42;
8 }
9 struct S {
10     fieldVar: i32,
11 }
12 fn f() {
13     S { fieldVar: 42 }
14 }