diff options
Diffstat (limited to 'src/test/ui/consts/partial_qualif.stderr')
-rw-r--r-- | src/test/ui/consts/partial_qualif.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/consts/partial_qualif.stderr b/src/test/ui/consts/partial_qualif.stderr new file mode 100644 index 000000000..32c25be21 --- /dev/null +++ b/src/test/ui/consts/partial_qualif.stderr @@ -0,0 +1,9 @@ +error[E0492]: constants cannot refer to interior mutable data + --> $DIR/partial_qualif.rs:6:5 + | +LL | &{a} + | ^^^^ this borrow of an interior mutable value may end up in the final value + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0492`. |