summary refs log tree commit diff stats
path: root/tests/03-not-trait-impl.rs
blob: 0b05145fd09ab65eba001d642097284fb3edc300 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Checks that #[impl_trait] doesn't work on a trait impl.

use impl_trait::impl_trait;

struct Foo {
}

trait Bar {
}

impl_trait! {
    impl Bar for Foo {
    }
}

fn main() {}