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
97452c0ca1
rust
/
src
/
test
/
run-fail
/
explicit-fail-msg.rs
5 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Allow any string expression to be used with fail.
2011-07-01 13:33:15 -05:00
// error-pattern:wooooo
make --enforce-mut-vars always on, add mut annotations to remaining files
2012-03-22 10:39:41 -05:00
fn
main
(
)
{
Move the world over to using the new style string literals and types. Closes #2907.
2012-07-14 00:57:48 -05:00
let
mut
a
=
1
;
if
1
=
=
1
{
a
=
2
;
}
fail
~
"
woooo
"
+
~
"
o
"
;
make --enforce-mut-vars always on, add mut annotations to remaining files
2012-03-22 10:39:41 -05:00
}
Reference in New Issue
Copy Permalink