File tree 4 files changed +12
-12
lines changed
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 6
6
// pretty-mode:hir
7
7
// pp-exact:hir-pretty-loop.pp
8
8
9
- pub fn foo() { loop { break; } }
9
+ fn foo() { loop { break; } }
Original file line number Diff line number Diff line change 8
8
9
9
// # 4264 fixed-length vector types
10
10
11
- pub fn foo(_: [i32; (3 as usize)]) ({ } as ())
11
+ fn foo(_: [i32; (3 as usize)]) ({ } as ())
12
12
13
- pub fn bar() ({
13
+ fn bar() ({
14
14
const FOO: usize = ((5 as usize) - (4 as usize) as usize);
15
15
let _: [(); (FOO as usize)] = ([(() as ())] as [(); 1]);
16
16
41
41
(res as String)
42
42
} as String);
43
43
} as ())
44
- pub type Foo = [i32; (3 as usize)];
45
- pub struct Bar {
46
- pub x: [i32; (3 as usize)],
44
+ type Foo = [i32; (3 as usize)];
45
+ struct Bar {
46
+ x: [i32; (3 as usize)],
47
47
}
48
- pub struct TupleBar([i32; (4 as usize)]);
49
- pub enum Baz { BazVariant([i32; (5 as usize)]), }
50
- pub fn id<T>(x: T) -> T ({ (x as T) } as T)
51
- pub fn use_id() ({
48
+ struct TupleBar([i32; (4 as usize)]);
49
+ enum Baz { BazVariant([i32; (5 as usize)]), }
50
+ fn id<T>(x: T) -> T ({ (x as T) } as T)
51
+ fn use_id() ({
52
52
let _ =
53
53
((id::<[i32; (3 as usize)]> as
54
54
fn([i32; 3]) -> [i32; 3] {id::<[i32; 3]>})(([(1 as i32),
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ extern crate std;
6
6
// compile-flags: -Zunpretty=hir,typed
7
7
// check-pass
8
8
9
- pub fn main() ({
9
+ fn main() ({
10
10
(if (true as bool)
11
11
({ } as
12
12
()) else if (let Some(a) =
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ extern crate std;
10
10
trait Animal { }
11
11
12
12
fn main() {
13
- pub type ServeFut = /*impl Trait*/;
13
+ type ServeFut = /*impl Trait*/;
14
14
}
You can’t perform that action at this time.
0 commit comments