summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/resolve-variant-assoc-item.rs
blob: db4fedfb0bdf866b643c8c3897878ebfb8eae7a1 (plain)
1
2
3
4
5
6
7
enum E { V }
use E::V;

fn main() {
    E::V::associated_item; //~ ERROR failed to resolve: `V` is a variant, not a module
    V::associated_item; //~ ERROR failed to resolve: `V` is a variant, not a module
}