diff options
Diffstat (limited to 'tests/ui/lint/unreachable-async-fn.rs')
-rw-r--r-- | tests/ui/lint/unreachable-async-fn.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/lint/unreachable-async-fn.rs b/tests/ui/lint/unreachable-async-fn.rs new file mode 100644 index 000000000..eedd877fe --- /dev/null +++ b/tests/ui/lint/unreachable-async-fn.rs @@ -0,0 +1,9 @@ +// check-pass +// edition:2018 + +#[allow(dead_code)] +async fn foo () { // unreachable lint doesn't trigger + unimplemented!() +} + +fn main() {} |