]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/type-ascription-instead-of-path-in-type.rs
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.rs
1 enum A {
2     B,
3 }
4
5 fn main() {
6     let _: Vec<A:B> = A::B;
7     //~^ ERROR cannot find trait `B` in this scope
8     //~| HELP you might have meant to write a path instead of an associated type bound
9     //~| ERROR associated type bounds are unstable
10     //~| HELP add `#![feature(associated_type_bounds)]` to the crate attributes to enable
11     //~| ERROR struct takes at least 1 generic argument but 0 generic arguments were supplied
12     //~| HELP add missing generic argument
13     //~| ERROR associated type bindings are not allowed here
14 }