summaryrefslogtreecommitdiffstats
path: root/src/test/ui/raw-ref-op/raw-ref-temp.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/raw-ref-op/raw-ref-temp.stderr')
-rw-r--r--src/test/ui/raw-ref-op/raw-ref-temp.stderr16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/raw-ref-op/raw-ref-temp.stderr b/src/test/ui/raw-ref-op/raw-ref-temp.stderr
index 80dea76d5..b96661625 100644
--- a/src/test/ui/raw-ref-op/raw-ref-temp.stderr
+++ b/src/test/ui/raw-ref-op/raw-ref-temp.stderr
@@ -73,26 +73,26 @@ LL | let mut_index_ref = &raw mut ARRAY[1];
error[E0745]: cannot take address of a temporary
--> $DIR/raw-ref-temp.rs:26:34
|
-LL | let ref_ascribe = &raw const (2: i32);
- | ^^^^^^^^ temporary value
+LL | let ref_ascribe = &raw const type_ascribe!(2, i32);
+ | ^^^^^^^^^^^^^^^^^^^^^ temporary value
error[E0745]: cannot take address of a temporary
--> $DIR/raw-ref-temp.rs:27:36
|
-LL | let mut_ref_ascribe = &raw mut (3: i32);
- | ^^^^^^^^ temporary value
+LL | let mut_ref_ascribe = &raw mut type_ascribe!(3, i32);
+ | ^^^^^^^^^^^^^^^^^^^^^ temporary value
error[E0745]: cannot take address of a temporary
--> $DIR/raw-ref-temp.rs:29:40
|
-LL | let ascribe_field_ref = &raw const (PAIR.0: i32);
- | ^^^^^^^^^^^^^ temporary value
+LL | let ascribe_field_ref = &raw const type_ascribe!(PAIR.0, i32);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ temporary value
error[E0745]: cannot take address of a temporary
--> $DIR/raw-ref-temp.rs:30:38
|
-LL | let ascribe_index_ref = &raw mut (ARRAY[0]: i32);
- | ^^^^^^^^^^^^^^^ temporary value
+LL | let ascribe_index_ref = &raw mut type_ascribe!(ARRAY[0], i32);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ temporary value
error: aborting due to 16 previous errors