]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-2865.rs
Rollup merge of #86263 - fee1-dead:rustdoc-layout-variants, r=camelid
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-2865.rs
1 #[allow(dead_code)]
2
3 /// Test for https://github.com/rust-lang/rust-clippy/issues/2865
4
5 struct Ice {
6     size: String,
7 }
8
9 impl<'a> From<String> for Ice {
10     fn from(_: String) -> Self {
11         let text = || "iceberg".to_string();
12         Self { size: text() }
13     }
14 }
15
16 fn main() {}