2023-03-14 18:43:37 +00:00
|
|
|
//@ 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
|
2023-10-25 10:49:24 +00:00
|
|
|
//~| ERROR the trait bound `(): Project` is not satisfied
|
2024-02-09 12:17:55 +00:00
|
|
|
//~| ERROR the trait bound `(): Project` is not satisfied
|
2023-10-25 10:49:24 +00:00
|
|
|
//~| ERROR function is expected to take 1 argument, but it takes 0 arguments
|