Add test for #2472

This commit is contained in:
Brian Anderson 2012-08-14 21:16:51 -07:00
parent fa0e96e0f7
commit 83b42c806f
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,14 @@
enum S = ();
impl S {
fn foo() { }
}
trait T {
fn bar();
}
impl S: T {
fn bar() { }
}

View File

@ -0,0 +1,11 @@
// aux-build:issue_2472_b.rs
use issue_2472_b;
import issue_2472_b::{S, T};
fn main() {
let s = S(());
s.foo();
s.bar();
}