diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/keyword/keyword-self-as-identifier.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/keyword/keyword-self-as-identifier.stderr b/src/test/ui/keyword/keyword-self-as-identifier.stderr new file mode 100644 index 000000000..060e7c3ea --- /dev/null +++ b/src/test/ui/keyword/keyword-self-as-identifier.stderr @@ -0,0 +1,9 @@ +error[E0531]: cannot find unit struct, unit variant or constant `Self` in this scope + --> $DIR/keyword-self-as-identifier.rs:2:9 + | +LL | let Self = 22; + | ^^^^ not found in this scope + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0531`. |