This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
846068046d
rust
/
src
/
test
/
compile-fail
/
bad-alt.rs
8 lines
96 B
Rust
Raw
Normal View
History
Unescape
Escape
Switch xfail system to use comments embedded in source files.
2011-03-25 14:19:20 -05:00
// xfail-stage0
Modified parser to handle alt type andadded a few tests ast.ml - modified arm types for easier polymorphism - fixed a bug in fmt_type_arm dead.ml - modified arm types for easier polymorphism common.ml - added 'either' - added some useful auxiliary functions item.ml - modified arm code to be more polymorphic and handle both alt-tag and alt-type, also fixed the problematic case in bad-alt.rs Makefile - added XFAIL for new alt-type test bad-alt.rs - added test for invalid alt syntax alt-type-simple.rs - added simple test for alt type
2010-08-20 18:41:43 -05:00
// error-pattern: Unexpected token 'x'
fn
main
(
)
{
let
int
x
=
5
;
alt
x
;
}
Reference in New Issue
Copy Permalink