rust/tests/ui/crashes/ice-1969.rs

16 lines
251 B
Rust
Raw Normal View History

// run-pass
2018-07-30 17:33:44 +08:00
#![allow(clippy::all)]
2017-08-21 18:57:33 +08:00
/// Test for https://github.com/rust-lang/rust-clippy/issues/1969
2018-12-10 06:26:16 +08:00
fn main() {}
2017-08-21 18:57:33 +08:00
pub trait Convert {
type Action: From<*const f64>;
fn convert(val: *const f64) -> Self::Action {
val.into()
}
}