diff options
Diffstat (limited to 'tests/ui/traits/new-solver/borrowck-error.rs')
-rw-r--r-- | tests/ui/traits/new-solver/borrowck-error.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/ui/traits/new-solver/borrowck-error.rs b/tests/ui/traits/new-solver/borrowck-error.rs deleted file mode 100644 index 4787a2c7e..000000000 --- a/tests/ui/traits/new-solver/borrowck-error.rs +++ /dev/null @@ -1,11 +0,0 @@ -// compile-flags: -Ztrait-solver=next - -use std::collections::HashMap; - -fn foo() -> &'static HashMap<i32, i32> -{ - &HashMap::new() - //~^ ERROR cannot return reference to temporary value -} - -fn main() {} |