summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-100313.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/issues/issue-100313.rs')
-rw-r--r--tests/ui/const-generics/issues/issue-100313.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/const-generics/issues/issue-100313.rs b/tests/ui/const-generics/issues/issue-100313.rs
index 4e9d3626a..9af9b5ca4 100644
--- a/tests/ui/const-generics/issues/issue-100313.rs
+++ b/tests/ui/const-generics/issues/issue-100313.rs
@@ -9,6 +9,7 @@ impl <const B: &'static bool> T<B> {
unsafe {
*(B as *const bool as *mut bool) = false;
//~^ ERROR evaluation of constant value failed [E0080]
+ //~| ERROR assigning to `&T` is undefined behavior
}
}
}