diff options
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/no_nested_borrows.rs | 7 |
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 |