2022-12-15 05:21:39 -06:00
|
|
|
#![feature(auto_traits)]
|
|
|
|
|
|
|
|
auto trait Foo {
|
|
|
|
fn g(&self); //~ ERROR auto traits cannot have associated items
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Bar {
|
|
|
|
fn f(&self) {
|
2022-12-16 18:20:46 -06:00
|
|
|
// issue #105788
|
|
|
|
self.g(); //~ ERROR no method named `g` found for reference `&Self` in the current scope
|
2022-12-15 05:21:39 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|