mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
16 lines
262 B
Rust
16 lines
262 B
Rust
|
// 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
|