]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/const-unit-struct.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / const-unit-struct.rs
index ebad469088d01edb26eb1b84894611945a6ee8d2..7e6d9f0bee9b92e76509e1479c054def6ac79484 100644 (file)
 
 struct Foo;
 
-const X: Foo = Foo;
+static X: Foo = Foo;
 
-fn main() {
+pub fn main() {
     match X {
         Foo => {}
     }
 }
-