summaryrefslogtreecommitdiff
path: root/tests/src/no_nested_borrows.rs
diff options
context:
space:
mode:
authorSon Ho2024-06-03 21:29:08 +0200
committerSon Ho2024-06-03 21:29:08 +0200
commit374eb6fe2e35791e4f18e415cd8d761d89a8bec5 (patch)
tree0f66b0f7cbf7e6363207e988fae0a42755787194 /tests/src/no_nested_borrows.rs
parent5a3b8b399c182f38586b44abcf53041845d0f672 (diff)
Add a test
Diffstat (limited to 'tests/src/no_nested_borrows.rs')
-rw-r--r--tests/src/no_nested_borrows.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/src/no_nested_borrows.rs b/tests/src/no_nested_borrows.rs
index 9a7604e6..88c0bc09 100644
--- a/tests/src/no_nested_borrows.rs
+++ b/tests/src/no_nested_borrows.rs
@@ -213,6 +213,11 @@ pub fn test_char() -> char {
'a'
}
+/// This triggered a bug at some point
+pub fn panic_mut_borrow(_: &mut u32) {
+ panic!()
+}
+
/// Mutually recursive types
pub enum Tree<T> {
Leaf(T),
@@ -225,7 +230,7 @@ pub enum NodeElem<T> {
}
/*
-// TODO: those definitions requires semantic termination (breaks the Coq backend
+// TODO: those definitions require semantic termination (breaks the Coq backend
// because we don't use fuel in this case).
/// Mutually recursive functions