]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/type-ascription-instead-of-path-in-type.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / type-ascription-instead-of-path-in-type.stderr
1 error[E0405]: cannot find trait `B` in this scope
2   --> $DIR/type-ascription-instead-of-path-in-type.rs:6:18
3    |
4 LL |     let _: Vec<A:B> = A::B;
5    |                  ^ not found in this scope
6    |
7 help: you might have meant to write a path instead of an associated type bound
8    |
9 LL |     let _: Vec<A::B> = A::B;
10    |                 ~~
11
12 error[E0658]: associated type bounds are unstable
13   --> $DIR/type-ascription-instead-of-path-in-type.rs:6:16
14    |
15 LL |     let _: Vec<A:B> = A::B;
16    |                ^^^
17    |
18    = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
19    = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
20
21 error[E0107]: this struct takes at least 1 generic argument but 0 generic arguments were supplied
22   --> $DIR/type-ascription-instead-of-path-in-type.rs:6:12
23    |
24 LL |     let _: Vec<A:B> = A::B;
25    |            ^^^ expected at least 1 generic argument
26    |
27 help: add missing generic argument
28    |
29 LL |     let _: Vec<T, A:B> = A::B;
30    |                ++
31
32 error[E0229]: associated type bindings are not allowed here
33   --> $DIR/type-ascription-instead-of-path-in-type.rs:6:16
34    |
35 LL |     let _: Vec<A:B> = A::B;
36    |                ^^^ associated type not allowed here
37
38 error: aborting due to 4 previous errors
39
40 Some errors have detailed explanations: E0107, E0229, E0405, E0658.
41 For more information about an error, try `rustc --explain E0107`.