mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
20 lines
515 B
Rust
20 lines
515 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
|
|
//~| ERROR the trait bound `(): Project` is not satisfied
|
|
//~| ERROR the trait bound `(): Project` is not satisfied
|
|
//~| ERROR the trait bound `(): Project` is not satisfied
|
|
//~| ERROR function is expected to take 1 argument, but it takes 0 arguments
|