diff options
| author | Graydon Hoare <[email protected]> | 2010-07-02 16:27:39 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-02 16:27:39 -0700 |
| commit | 8660ce50a134a74bc841f32e50eb1eab83f8b45b (patch) | |
| tree | aeb7795b09c1d2507198cfa8642ef797d685bc8f /src/test/run-pass | |
| parent | Fix bug in clone logic; was ignoring the mutability-strip step in later rule. (diff) | |
| parent | Fix two bugs in tag patterns: 1. Look up the tag constructor function item us... (diff) | |
| download | rust-8660ce50a134a74bc841f32e50eb1eab83f8b45b.tar.xz rust-8660ce50a134a74bc841f32e50eb1eab83f8b45b.zip | |
Merge branch 'master' of [email protected]:graydon/rust into exterior_and_mutable_types
Diffstat (limited to 'src/test/run-pass')
| -rw-r--r-- | src/test/run-pass/generic-fn-twice.rs | 10 | ||||
| -rw-r--r-- | src/test/run-pass/generic-obj.rs | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/test/run-pass/generic-fn-twice.rs b/src/test/run-pass/generic-fn-twice.rs new file mode 100644 index 00000000..0c6257f8 --- /dev/null +++ b/src/test/run-pass/generic-fn-twice.rs @@ -0,0 +1,10 @@ +// -*- rust -*- + +mod foomod { + fn foo[T]() {} +} + +fn main() { + foomod.foo[int](); + foomod.foo[int](); +} diff --git a/src/test/run-pass/generic-obj.rs b/src/test/run-pass/generic-obj.rs index 414aaff4..1ff7d180 100644 --- a/src/test/run-pass/generic-obj.rs +++ b/src/test/run-pass/generic-obj.rs @@ -11,7 +11,7 @@ obj buf[T](tup(T,T,T) data) { } } - fn take(T t) {} + fn take(&T t) {} } fn main() { |