rust/tests/ui/error-codes/E0424.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
292 B
Rust
Raw Normal View History

2016-08-17 21:45:10 +00:00
struct Foo;
impl Foo {
fn bar(self) {}
fn foo() {
self.bar(); //~ ERROR E0424
2016-08-17 21:45:10 +00:00
}
fn baz(_: i32) {
self.bar(); //~ ERROR E0424
}
fn qux() {
let _ = || self.bar(); //~ ERROR E0424
}
2016-08-17 21:45:10 +00:00
}
fn main () {
let self = "self"; //~ ERROR E0424
2016-08-17 21:45:10 +00:00
}