Fixes to the roll-up

This commit is contained in:
Jakub Bukaj 2014-11-19 23:06:53 +01:00
parent 2e9f705b93
commit ee66c84165
4 changed files with 16 additions and 13 deletions

View file

@ -36,6 +36,6 @@ fn main() {
1234suffix; //~ ERROR illegal suffix `suffix` for numeric literal
0b101suffix; //~ ERROR illegal suffix `suffix` for numeric literal
1.0suffix; //~ ERROR illegal suffix `suffix` for numeric literal
1.0e10suffix; //~ ERROR illegal suffix `suffix` for numeric literal
1.0suffix; //~ ERROR illegal suffix `suffix` for float literal
1.0e10suffix; //~ ERROR illegal suffix `suffix` for float literal
}

View file

@ -8,11 +8,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn main() {
enum Foo {
FooB { x: i32, y: i32 }
}
use Foo::FooB;
enum Foo {
FooB { x: i32, y: i32 }
}
fn main() {
let f = FooB { x: 3, y: 4 };
match f {
FooB(a, b) => println!("{} {}", a, b),