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
|
|
|
|
|
2019-10-17 20:26:21 -07: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
|
|
|
|
2018-11-12 15:50:27 -05: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
|
2018-11-12 15:50:27 -05:00
|
|
|
|
|
2019-10-17 20:26:21 -07:00
|
|
|
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
|
2018-11-12 15:50:27 -05:00
|
|
|
|
|
|
|
|
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`.
|