Fixes to the roll-up
This commit is contained in:
parent
2e9f705b93
commit
ee66c84165
4 changed files with 16 additions and 13 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue