diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs b/src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs deleted file mode 100644 index f9134e669..000000000 --- a/src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs +++ /dev/null @@ -1,14 +0,0 @@ -// Regression test for issue 88434 - -const _CONST: &[u8] = &f(&[], |_| {}); -//~^ constant - -const fn f<F>(_: &[u8], _: F) -> &[u8] -where - F: FnMut(&u8), -{ - panic!() //~ ERROR evaluation of constant value failed - //~^ panic -} - -fn main() { } |