]> git.lizzy.rs Git - rust.git/blob - tests/run-pass/ice-2865.rs
Adapt run-pass tests to the tool_lints
[rust.git] / tests / run-pass / ice-2865.rs
1 #[allow(dead_code)]
2 struct Ice {
3     size: String
4 }
5
6 impl<'a> From<String> for Ice {
7     fn from(_: String) -> Self {
8         let text = || "iceberg".to_string();
9         Self { size: text() }
10     }
11 }
12
13 fn main() {}