summaryrefslogtreecommitdiff
path: root/tests/src/no_nested_borrows.rs
diff options
context:
space:
mode:
authorSon HO2024-06-04 14:05:44 +0200
committerGitHub2024-06-04 14:05:44 +0200
commitafc4e62ce7a584da0bb0a7350533e321388be545 (patch)
tree89f3b6999e1697595f1c3fbb2d9c4d8c60a69e49 /tests/src/no_nested_borrows.rs
parent4a31acdff7a5dfdc26bf25ad25bb8266b790f891 (diff)
parent3ad6c4712fd41efec55f29af5ccc31f68a0e12cf (diff)
Merge pull request #228 from AeneasVerif/son/loops2
Add support for projection markers when joining environments
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 a250748c..6d3074ef 100644
--- a/tests/src/no_nested_borrows.rs
+++ b/tests/src/no_nested_borrows.rs
@@ -216,6 +216,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),
@@ -228,7 +233,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