about summary refs log tree commit diff
path: root/tests/ui/derives/nonsense-input-to-debug.rs
blob: 7dfa3cd616a7a131c9e554f6785dd0a4921e782b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Issue: #32950
// Ensure that using macros rather than a type doesn't break `derive`.

#[derive(Debug)]
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
}

fn main() {}