diff options
| author | Or Brostovski <[email protected]> | 2010-08-28 15:22:20 +0300 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-30 13:40:34 -0700 |
| commit | 74cb9508cd122b7863f179c69c406e0f47572354 (patch) | |
| tree | 6ba22a1cbe7aed3eecf81b901029a05ca8b25088 /src/test/compile-fail | |
| parent | Patchwork of attempted fixes to effect system and gc system; eventually give ... (diff) | |
| download | rust-74cb9508cd122b7863f179c69c406e0f47572354.tar.xz rust-74cb9508cd122b7863f179c69c406e0f47572354.zip | |
Closed issue 154 - prevents compiler from compiliing a line to zero statements
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/does-nothing.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/compile-fail/does-nothing.rs b/src/test/compile-fail/does-nothing.rs new file mode 100644 index 00000000..805d3142 --- /dev/null +++ b/src/test/compile-fail/does-nothing.rs @@ -0,0 +1,7 @@ +// error-pattern: does nothing +fn main() { + log "doing"; + this_does_nothing_what_the; + log "boing"; +} + |