diff options
Diffstat (limited to 'src/test/run-pass/issue-2311-2.rs')
| -rw-r--r-- | src/test/run-pass/issue-2311-2.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/run-pass/issue-2311-2.rs b/src/test/run-pass/issue-2311-2.rs index e0b98ab1965..5529d51b408 100644 --- a/src/test/run-pass/issue-2311-2.rs +++ b/src/test/run-pass/issue-2311-2.rs @@ -8,7 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -trait clam<A> { } +trait clam<A> { + fn get(self) -> A; +} + struct foo<A> { x: A, } |
