From 4d7ea6f60cead26bde2d32c041ee30ec5321894f Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Mon, 30 May 2016 19:20:07 -0300 Subject: [PATCH] Lifetime in trait method declaration affects RFC 1214 checks Reference rust-lang/rust#27987 --- src/27987.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/27987.rs diff --git a/src/27987.rs b/src/27987.rs new file mode 100644 index 00000000..376f9420 --- /dev/null +++ b/src/27987.rs @@ -0,0 +1,7 @@ +pub struct S; +impl S { + pub fn f<'a>(&self, f: &'a f32) where u32: PartialEq<&'a f32> { + 4==f; + } +} +fn main() {}