diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-assign-to-constants.stderr')
-rw-r--r-- | src/test/ui/borrowck/borrowck-assign-to-constants.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/borrowck/borrowck-assign-to-constants.stderr b/src/test/ui/borrowck/borrowck-assign-to-constants.stderr new file mode 100644 index 000000000..864d933da --- /dev/null +++ b/src/test/ui/borrowck/borrowck-assign-to-constants.stderr @@ -0,0 +1,9 @@ +error[E0594]: cannot assign to immutable static item `foo` + --> $DIR/borrowck-assign-to-constants.rs:5:5 + | +LL | foo = 6; + | ^^^^^^^ cannot assign + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0594`. |