2018-12-16 21:21:47 -06:00
|
|
|
trait Foo {
|
2015-02-12 09:29:52 -06:00
|
|
|
fn dummy(&self) { }
|
2013-03-21 21:07:54 -05:00
|
|
|
fn bar();
|
2012-08-02 18:01:38 -05:00
|
|
|
}
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
impl Foo for isize {
|
2014-02-05 16:33:10 -06:00
|
|
|
fn bar(&self) {}
|
|
|
|
//~^ ERROR method `bar` has a `&self` declaration in the impl, but not in the trait
|
2012-08-02 18:01:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|