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
0e3ee39c41
rust
/
src
/
test
/
compile-fail
/
bad-alt.rs
7 lines
69 B
Rust
Raw
Normal View
History
Unescape
Escape
Change two compile-fail patterns to match rustc output.
2011-05-04 13:20:47 -05:00
// error-pattern: expecting
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
fn
main
(
)
{
let
int
x
=
5
;
alt
x
;
}
Reference in New Issue
Copy Permalink