diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-11-23 15:49:21 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-11-24 09:37:52 +1300 |
| commit | d405fdc2363486173b56deef1dc05ef7ea53c04b (patch) | |
| tree | 5b6f38b561304eac9bb13852af1cf9bb612f6239 /tests/source | |
| parent | 5a3f5bc1f61a73ab8db241dfadf0855c504a9906 (diff) | |
Fix a bug with nested impls
Diffstat (limited to 'tests/source')
| -rw-r--r-- | tests/source/impls.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/source/impls.rs b/tests/source/impls.rs index 8e7b561ae4a..499b07afd27 100644 --- a/tests/source/impls.rs +++ b/tests/source/impls.rs @@ -21,3 +21,23 @@ impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Fooooooooooooooo { fn foo() { "hi" } } + +impl Foo { + fn foo() {} +} + +mod a { + impl Foo { + // Hello! + fn foo() {} + } +} + + +mod b { + mod a { + impl Foo { + fn foo() {} + } + } +} |
