about summary refs log tree commit diff
path: root/tests/ui/traits/anon_trait_static_method_exe.rs
blob: 8a6a8389cf1265b441093fec7671780729c7fd20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
#![allow(non_camel_case_types)]

//@ aux-build:anon_trait_static_method_lib.rs

extern crate anon_trait_static_method_lib;
use anon_trait_static_method_lib::Foo;

pub fn main() {
    let x = Foo::new();
    println!("{}", x.x);
}