-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait system
Description
This assumes #4101 is merged. ICE's.
trait_default_method_xc_aux.rs:
pub trait A {
fn g() -> int { 10 }
}
impl int: A { }
trait-default-method-xc.rs
// aux-build:trait_default_method_bound_aux.rs
extern mod aux(name = "trait_default_method_bound_aux");
fn f<T: aux::A>(i: T) {
assert i.g() == 10;
}
fn main () {
f(0);
}
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait system