diff options
Diffstat (limited to 'tests/ui/const-generics/raw-ptr-const-param.full.stderr')
-rw-r--r-- | tests/ui/const-generics/raw-ptr-const-param.full.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/const-generics/raw-ptr-const-param.full.stderr b/tests/ui/const-generics/raw-ptr-const-param.full.stderr new file mode 100644 index 000000000..69f1aae56 --- /dev/null +++ b/tests/ui/const-generics/raw-ptr-const-param.full.stderr @@ -0,0 +1,9 @@ +error[E0741]: using raw pointers as const generic parameters is forbidden + --> $DIR/raw-ptr-const-param.rs:6:23 + | +LL | struct Const<const P: *const u32>; + | ^^^^^^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0741`. |