diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/crashes/ice-7423.rs')
-rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-7423.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-7423.rs b/src/tools/clippy/tests/ui/crashes/ice-7423.rs new file mode 100644 index 000000000..31340b012 --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-7423.rs @@ -0,0 +1,13 @@ +pub trait Trait { + fn f(); +} + +impl Trait for usize { + fn f() { + extern "C" { + fn g() -> usize; + } + } +} + +fn main() {} |