We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6053544 commit f77dd5aCopy full SHA for f77dd5a
src/test/ui/rust-2021/future-prelude-collision-unneeded.rs
@@ -11,8 +11,23 @@ impl S {
11
}
12
13
14
-// See https://github.com/rust-lang/rust/issues/86633
+struct X;
15
+
16
+trait Hey {
17
+ fn from_iter(_: i32) -> Self;
18
+}
19
20
+impl Hey for X {
21
+ fn from_iter(_: i32) -> Self {
22
+ X
23
+ }
24
25
26
fn main() {
27
+ // See https://github.com/rust-lang/rust/issues/86633
28
let s = S;
29
let s2 = s.try_into();
30
31
+ // See https://github.com/rust-lang/rust/issues/86902
32
+ X::from_iter(1);
33
0 commit comments