diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/crashes/ice-2727.rs')
-rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-2727.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-2727.rs b/src/tools/clippy/tests/ui/crashes/ice-2727.rs new file mode 100644 index 000000000..56024abc8 --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-2727.rs @@ -0,0 +1,7 @@ +/// Test for https://github.com/rust-lang/rust-clippy/issues/2727 + +pub fn f(new: fn()) { + new(); +} + +fn main() {} |