]> git.proxmox.com Git - rustc.git/blob - src/test/ui/mir/issue-75053.in_bindings.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / mir / issue-75053.in_bindings.stderr
1 warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-75053.rs:7:34
3 |
4 LL | #![cfg_attr(in_bindings, feature(impl_trait_in_bindings))]
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
9
10 error[E0282]: type annotations needed
11 --> $DIR/issue-75053.rs:52:38
12 |
13 LL | type O;
14 | ------- `<Self as MyIndex<T>>::O` defined here
15 ...
16 LL | let _pos: Phantom1<DummyT<()>> = Scope::new().my_index();
17 | ^^^^^^^^^^-------------
18 | |
19 | this method call resolves to `<Self as MyIndex<T>>::O`
20 | cannot infer type for type parameter `T`
21
22 error: aborting due to previous error; 1 warning emitted
23
24 For more information about this error, try `rustc --explain E0282`.