mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
parent
75aeca4d39
commit
b0755581ca
@ -362,7 +362,7 @@ impl<'a> FmtVisitor<'a> {
|
||||
}
|
||||
ast::ImplItemKind::Const(ref ty, ref expr) => {
|
||||
let rewrite = rewrite_static("const",
|
||||
ast::Visibility::Inherited,
|
||||
ii.vis,
|
||||
ii.ident,
|
||||
ty,
|
||||
ast::Mutability::Immutable,
|
||||
|
@ -12,3 +12,7 @@ static mut name: SomeType = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
pub static count : u8 = 10 ;
|
||||
|
||||
pub const test: &Type = &val;
|
||||
|
||||
impl Color {
|
||||
pub const WHITE: u32 = 10;
|
||||
}
|
||||
|
@ -15,3 +15,7 @@ static mut name: SomeType =
|
||||
pub static count: u8 = 10;
|
||||
|
||||
pub const test: &Type = &val;
|
||||
|
||||
impl Color {
|
||||
pub const WHITE: u32 = 10;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user