mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
14 lines
206 B
Rust
14 lines
206 B
Rust
|
#![feature(plugin)]
|
||
|
#![plugin(clippy)]
|
||
|
#![allow(clippy)]
|
||
|
|
||
|
fn main() { }
|
||
|
|
||
|
pub trait Convert {
|
||
|
type Action: From<*const f64>;
|
||
|
|
||
|
fn convert(val: *const f64) -> Self::Action {
|
||
|
val.into()
|
||
|
}
|
||
|
}
|