Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#![no_std]
trait Foo { }
impl Foo for i32 { }
impl Foo for u32 { }
fn gimme<F: Foo>() { }
fn main() {
gimme::<i32>();
gimme::<u32>();
gimme::<f32>(); //~ ERROR
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.