diff options
Diffstat (limited to 'src/test/ui/binding/borrowed-ptr-pattern-2.rs')
-rw-r--r-- | src/test/ui/binding/borrowed-ptr-pattern-2.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/binding/borrowed-ptr-pattern-2.rs b/src/test/ui/binding/borrowed-ptr-pattern-2.rs deleted file mode 100644 index 40df85b14..000000000 --- a/src/test/ui/binding/borrowed-ptr-pattern-2.rs +++ /dev/null @@ -1,13 +0,0 @@ -// run-pass - -fn foo(s: &String) -> bool { - match &**s { - "kitty" => true, - _ => false - } -} - -pub fn main() { - assert!(foo(&"kitty".to_string())); - assert!(!foo(&"gata".to_string())); -} |