diff options
| author | bors <bors@rust-lang.org> | 2023-12-21 16:53:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-21 16:53:31 +0000 |
| commit | 82e1608dfa6e0b5569232559e3d385fea5a93112 (patch) | |
| tree | 551296674abd55ef8423ff09749df8f8d39f23c1 /src/tools/clippy/tests/ui/crashes | |
| parent | fbe9b6fcee489b97a5de52b8546d0eec15b59d4f (diff) | |
| parent | f54362f285651e942e30611ad5b7c3dce44becd3 (diff) | |
| download | rust-1.75.0.tar.gz rust-1.75.0.zip | |
Auto merge of #119188 - flip1995:clippy-beta-backport, r=pietroalbini 1.75.0
[beta] Clippy beta backport PR towards stable, as beta was branched a day early and I missed the notification. - https://github.com/rust-lang/rust-clippy/pull/11538 - https://github.com/rust-lang/rust-clippy/pull/11756 - https://github.com/rust-lang/rust-clippy/pull/11760 - https://github.com/rust-lang/rust-clippy/pull/11953 r? `@pietroalbini`
Diffstat (limited to 'src/tools/clippy/tests/ui/crashes')
| -rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-11230.rs | 6 | ||||
| -rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-11755.rs | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-11230.rs b/src/tools/clippy/tests/ui/crashes/ice-11230.rs new file mode 100644 index 00000000000..5761882273e --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-11230.rs @@ -0,0 +1,6 @@ +/// Test for https://github.com/rust-lang/rust-clippy/issues/11230 + +fn main() { + const A: &[for<'a> fn(&'a ())] = &[]; + for v in A.iter() {} +} diff --git a/src/tools/clippy/tests/ui/crashes/ice-11755.rs b/src/tools/clippy/tests/ui/crashes/ice-11755.rs new file mode 100644 index 00000000000..367cb699857 --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-11755.rs @@ -0,0 +1,5 @@ +#![warn(clippy::unused_enumerate_index)] + +fn main() { + for () in [()].iter() {} +} |
