38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
12 lines
171 B
Rust
12 lines
171 B
Rust
#![allow(clippy::all)]
|
|
|
|
fn main() {}
|
|
|
|
pub trait Convert {
|
|
type Action: From<*const f64>;
|
|
|
|
fn convert(val: *const f64) -> Self::Action {
|
|
val.into()
|
|
}
|
|
}
|