2016-08-17 23:45:10 +02:00
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn bar(self) {}
|
|
|
|
|
|
|
|
fn foo() {
|
2016-12-01 01:35:25 +03:00
|
|
|
self.bar(); //~ ERROR E0424
|
2016-08-17 23:45:10 +02:00
|
|
|
}
|
2020-08-13 17:52:33 -07:00
|
|
|
|
|
|
|
fn baz(_: i32) {
|
|
|
|
self.bar(); //~ ERROR E0424
|
|
|
|
}
|
2020-10-17 13:36:59 +02:00
|
|
|
|
|
|
|
fn qux() {
|
|
|
|
let _ = || self.bar(); //~ ERROR E0424
|
|
|
|
}
|
2016-08-17 23:45:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main () {
|
2018-11-12 15:50:27 -05:00
|
|
|
let self = "self"; //~ ERROR E0424
|
2016-08-17 23:45:10 +02:00
|
|
|
}
|