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
8d381823e2
rust
/
src
/
test
/
run-pass
/
alt-pattern-simple.rs
8 lines
71 B
Rust
Raw
Normal View
History
Unescape
Escape
Resolve and typecheck patterns in pattern alt.
2010-06-24 10:13:32 -05:00
fn
altsimple
(
int
f
)
{
alt
(
f
)
{
Bind pattern slots with ?, drop parens from 0-ary tag constructors, translate 0-ary constructors as constants. Rustc loses ~300kb.
2010-09-21 01:56:43 -05:00
case
(
?
x
)
{
}
Resolve and typecheck patterns in pattern alt.
2010-06-24 10:13:32 -05:00
}
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink