diff options
Diffstat (limited to 'tests/ui/deprecation/deprecated-expr-precedence.rs')
| -rw-r--r-- | tests/ui/deprecation/deprecated-expr-precedence.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/deprecation/deprecated-expr-precedence.rs b/tests/ui/deprecation/deprecated-expr-precedence.rs new file mode 100644 index 00000000000..9636b46df20 --- /dev/null +++ b/tests/ui/deprecation/deprecated-expr-precedence.rs @@ -0,0 +1,8 @@ +//@ check-fail +//@ compile-flags: --crate-type=lib + +// Regression test for issue 142649 +pub fn public() { + #[deprecated] 0 + //~^ ERROR mismatched types +} |
