diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-fn-in-const-a.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-fn-in-const-a.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/borrowck-fn-in-const-a.rs b/src/test/ui/borrowck/borrowck-fn-in-const-a.rs deleted file mode 100644 index d4ceae296..000000000 --- a/src/test/ui/borrowck/borrowck-fn-in-const-a.rs +++ /dev/null @@ -1,12 +0,0 @@ -// Check that we check fns appearing in constant declarations. -// Issue #22382. - -const MOVE: fn(&String) -> String = { - fn broken(x: &String) -> String { - return *x //~ ERROR cannot move - } - broken -}; - -fn main() { -} |