2024-08-05 17:26:46 -07:00
|
|
|
// This ensures we don't ICE in situations like rust-lang/rust#127299.
|
|
|
|
|
|
|
|
|
|
trait Qux {
|
|
|
|
|
fn bar() -> i32;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub struct Lint {
|
|
|
|
|
pub desc: &'static dyn Qux,
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR is not dyn compatible
|
2024-08-05 17:26:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static FOO: &Lint = &Lint { desc: "desc" };
|
|
|
|
|
//~^ ERROR cannot be shared between threads safely
|
2024-11-20 14:19:36 -08:00
|
|
|
//~| ERROR is not dyn compatible
|
|
|
|
|
//~| ERROR is not dyn compatible
|
2024-08-05 17:26:46 -07:00
|
|
|
|
|
|
|
|
fn main() {}
|