diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/ref_patterns.rs')
| -rw-r--r-- | src/tools/clippy/tests/ui/ref_patterns.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/ref_patterns.rs b/src/tools/clippy/tests/ui/ref_patterns.rs index c51e0bc76ef..acd42ec89b6 100644 --- a/src/tools/clippy/tests/ui/ref_patterns.rs +++ b/src/tools/clippy/tests/ui/ref_patterns.rs @@ -6,14 +6,17 @@ fn use_in_pattern() { match opt { None => {}, Some(ref opt) => {}, + //~^ ERROR: usage of ref pattern } } fn use_in_binding() { let x = 5; let ref y = x; + //~^ ERROR: usage of ref pattern } fn use_in_parameter(ref x: i32) {} +//~^ ERROR: usage of ref pattern fn main() {} |
