summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0424.stderr
blob: d67a2660dac38ccbadf43a8bd5437fc85c753755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0424]: expected value, found module `self`
  --> $DIR/E0424.rs:7:9
   |
LL |         self.bar();
   |         ^^^^ `self` value is a keyword only available in methods with `self` parameter

error[E0424]: expected unit struct/variant or constant, found module `self`
  --> $DIR/E0424.rs:12:9
   |
LL |     let self = "self";
   |         ^^^^ `self` value is a keyword and may not be bound to variables or shadowed

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0424`.