2025-06-19 06:12:22 +00:00
|
|
|
// Issue: #32950
|
|
|
|
|
// Ensure that using macros rather than a type doesn't break `derive`.
|
2016-06-01 11:00:27 +00:00
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
#[derive(Debug)]
|
2025-06-19 06:12:22 +00:00
|
|
|
struct Nonsense<T> {
|
|
|
|
|
//~^ ERROR type parameter `T` is never used
|
|
|
|
|
should_be_vec_t: vec![T],
|
|
|
|
|
//~^ ERROR `derive` cannot be used on items with type macros
|
|
|
|
|
//~| ERROR expected type, found `expr` metavariable
|
|
|
|
|
}
|
2016-06-01 11:00:27 +00:00
|
|
|
|
2016-06-24 03:23:44 +00:00
|
|
|
fn main() {}
|