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

22 lines
720 B
Plaintext
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0424]: expected value, found module `self`
2018-12-25 08:56:47 -07:00
--> $DIR/E0424.rs:7:9
2018-02-07 19:35:35 -08:00
|
LL | / fn foo() {
LL | | self.bar();
| | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
LL | | }
| |_____- this function doesn't have a `self` parameter
2018-02-07 19:35:35 -08:00
error[E0424]: expected unit struct/variant or constant, found module `self`
2018-12-25 08:56:47 -07:00
--> $DIR/E0424.rs:12:9
|
LL | / fn main () {
LL | | let self = "self";
| | ^^^^ `self` value is a keyword and may not be bound to variables or shadowed
LL | | }
| |_- this function doesn't have a `self` parameter
error: aborting due to 2 previous errors
2018-02-07 19:35:35 -08:00
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0424`.