rust/src/test/ui/error-codes/E0424.stderr

16 lines
565 B
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0424]: expected value, found module `self`
--> $DIR/E0424.rs:17:9
|
2018-02-22 18:42:32 -06:00
LL | self.bar(); //~ ERROR E0424
2018-09-22 21:35:42 -05:00
| ^^^^ `self` value is a keyword only available in methods with `self` parameter
2018-02-07 21:35:35 -06:00
error[E0424]: expected unit struct/variant or constant, found module `self`
--> $DIR/E0424.rs:22:9
|
LL | let self = "self"; //~ ERROR E0424
| ^^^^ `self` value is a keyword and may not be bound to variables or shadowed
error: aborting due to 2 previous errors
2018-02-07 21:35:35 -06:00
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0424`.