Skip to content

Commit 4d7ea6f

Browse files
committed
Lifetime in trait method declaration affects RFC 1214 checks
Reference rust-lang/rust#27987
1 parent ba561d7 commit 4d7ea6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/27987.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pub struct S;
2+
impl S {
3+
pub fn f<'a>(&self, f: &'a f32) where u32: PartialEq<&'a f32> {
4+
4==f;
5+
}
6+
}
7+
fn main() {}

0 commit comments

Comments
 (0)