summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/patterns.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/patterns.fixed')
-rw-r--r--src/tools/clippy/tests/ui/patterns.fixed11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/patterns.fixed b/src/tools/clippy/tests/ui/patterns.fixed
index a1da47d84..714143e75 100644
--- a/src/tools/clippy/tests/ui/patterns.fixed
+++ b/src/tools/clippy/tests/ui/patterns.fixed
@@ -1,8 +1,12 @@
//@run-rustfix
+//@aux-build:proc_macros.rs:proc-macro
#![warn(clippy::all)]
#![allow(unused)]
#![allow(clippy::uninlined_format_args)]
+#[macro_use]
+extern crate proc_macros;
+
fn main() {
let v = Some(true);
let s = [0, 1, 2, 3, 4];
@@ -34,4 +38,11 @@ fn main() {
ref x => println!("vec: {:?}", x),
ref y if y == &vec![0] => (),
}
+ external! {
+ let v = Some(true);
+ match v {
+ Some(x) => (),
+ y @ _ => (),
+ }
+ }
}