diff options
| author | Patrick Walton <[email protected]> | 2011-04-06 10:25:32 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-06 10:25:32 -0700 |
| commit | d9da43984b5e9d50f711320d2afc3307537dfb44 (patch) | |
| tree | 6b9b3eefc8909c7621c01b7e039375deb019e7b1 /src/test | |
| parent | rustc: Make type_of() return the type of the wrapper for native functions. li... (diff) | |
| parent | Minimal testcase for next bootstrap blocker. (diff) | |
| download | rust-d9da43984b5e9d50f711320d2afc3307537dfb44.tar.xz rust-d9da43984b5e9d50f711320d2afc3307537dfb44.zip | |
Merge branch 'master' of github.com:graydon/rust
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/lib-option.rs | 6 | ||||
| -rw-r--r-- | src/test/run-pass/tag-and-generic-obj.rs | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/test/run-pass/lib-option.rs b/src/test/run-pass/lib-option.rs new file mode 100644 index 00000000..5add8dbd --- /dev/null +++ b/src/test/run-pass/lib-option.rs @@ -0,0 +1,6 @@ +// xfail-stage0 +use std; + +fn main() { + auto x = std.option.some[int](10); +}
\ No newline at end of file diff --git a/src/test/run-pass/tag-and-generic-obj.rs b/src/test/run-pass/tag-and-generic-obj.rs new file mode 100644 index 00000000..dbbc212e --- /dev/null +++ b/src/test/run-pass/tag-and-generic-obj.rs @@ -0,0 +1,10 @@ +tag colour { red; green; } + +obj foo[T]() { + fn meth(&T x) { + } +} + +fn main() { + foo[colour]().meth(red); +}
\ No newline at end of file |