Add regression test for issue 90320 · rust-lang/rust@6ad626f (original) (raw)
`@@ -10,8 +10,41 @@ LL | assert_eq!('x'.ipu_flatten(), 1);
`
10
10
`` = help: call with fully qualified syntax inference_unstable_itertools::IpuItertools::ipu_flatten(...)
to keep using the current method
``
11
11
`` = help: add #![feature(ipu_flatten)]
to the crate attributes to enable inference_unstable_iterator::IpuIterator::ipu_flatten
``
12
12
``
``
13
`+
warning: an associated function with this name may be added to the standard library in the future
`
``
14
`+
--> $DIR/inference_unstable.rs:19:20
`
``
15
`+
|
`
``
16
`+
LL | assert_eq!('x'.ipu_by_value_vs_by_ref(), 1);
`
``
17
`+
| ^^^^^^^^^^^^^^^^^^^^^^
`
``
18
`+
|
`
``
19
`+
= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
`
``
20
`+
= note: for more information, see issue #48919 https://github.com/rust-lang/rust/issues/48919
`
``
21
`` +
= help: call with fully qualified syntax inference_unstable_itertools::IpuItertools::ipu_by_value_vs_by_ref(...)
to keep using the current method
``
``
22
`` +
= help: add #![feature(ipu_flatten)]
to the crate attributes to enable inference_unstable_iterator::IpuIterator::ipu_by_value_vs_by_ref
``
``
23
+
``
24
`+
warning: an associated function with this name may be added to the standard library in the future
`
``
25
`+
--> $DIR/inference_unstable.rs:22:20
`
``
26
`+
|
`
``
27
`+
LL | assert_eq!('x'.ipu_by_ref_vs_by_ref_mut(), 1);
`
``
28
`+
| ^^^^^^^^^^^^^^^^^^^^^^^^
`
``
29
`+
|
`
``
30
`+
= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
`
``
31
`+
= note: for more information, see issue #48919 https://github.com/rust-lang/rust/issues/48919
`
``
32
`` +
= help: call with fully qualified syntax inference_unstable_itertools::IpuItertools::ipu_by_ref_vs_by_ref_mut(...)
to keep using the current method
``
``
33
`` +
= help: add #![feature(ipu_flatten)]
to the crate attributes to enable inference_unstable_iterator::IpuIterator::ipu_by_ref_vs_by_ref_mut
``
``
34
+
``
35
`+
warning: an associated function with this name may be added to the standard library in the future
`
``
36
`+
--> $DIR/inference_unstable.rs:25:40
`
``
37
`+
|
`
``
38
`+
LL | assert_eq!((&mut 'x' as *mut char).ipu_by_mut_ptr_vs_by_const_ptr(), 1);
`
``
39
`+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`
``
40
`+
|
`
``
41
`+
= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
`
``
42
`+
= note: for more information, see issue #48919 https://github.com/rust-lang/rust/issues/48919
`
``
43
`` +
= help: call with fully qualified syntax inference_unstable_itertools::IpuItertools::ipu_by_mut_ptr_vs_by_const_ptr(...)
to keep using the current method
``
``
44
`` +
= help: add #![feature(ipu_flatten)]
to the crate attributes to enable inference_unstable_iterator::IpuIterator::ipu_by_mut_ptr_vs_by_const_ptr
``
``
45
+
13
46
`warning: an associated constant with this name may be added to the standard library in the future
`
14
``
`-
--> $DIR/inference_unstable.rs:19:16
`
``
47
`+
--> $DIR/inference_unstable.rs:28:16
`
15
48
` |
`
16
49
`LL | assert_eq!(char::C, 1);
`
17
50
`` | ^^^^^^^ help: use the fully qualified path to the associated const: <char as IpuItertools>::C
``
`@@ -20,5 +53,5 @@ LL | assert_eq!(char::C, 1);
`
20
53
` = note: for more information, see issue #48919 https://github.com/rust-lang/rust/issues/48919
`
21
54
`` = help: add #![feature(assoc_const_ipu_iter)]
to the crate attributes to enable inference_unstable_iterator::IpuIterator::C
``
22
55
``
23
``
`-
warning: 2 warnings emitted
`
``
56
`+
warning: 5 warnings emitted
`
24
57
``