summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/bad-projection.rs
blob: d214c7ac8b274c9a9a26aeb11782c57a835d24b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// force-host
// no-prefer-dynamic

#![crate_type = "proc-macro"]
#![allow(warnings)]

extern crate proc_macro;

trait Project {
    type Assoc;
}

#[proc_macro]
pub fn uwu() -> <() as Project>::Assoc {}
//~^ ERROR the trait bound `(): Project` is not satisfied