2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2014-04-22 06:20:08 -05:00
|
|
|
trait Foo {
|
|
|
|
fn new() -> bool { false }
|
2015-02-12 09:29:52 -06:00
|
|
|
fn dummy(&self) { }
|
2014-04-22 06:20:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
trait Bar {
|
|
|
|
fn new(&self) -> bool { true }
|
|
|
|
}
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
impl Bar for isize {}
|
|
|
|
impl Foo for isize {}
|
2014-04-22 06:20:08 -05:00
|
|
|
|
|
|
|
fn main() {
|
2015-01-25 15:05:03 -06:00
|
|
|
assert!(1.new());
|
2014-05-22 18:57:53 -05:00
|
|
|
}
|