| 1 |
// #![feature(auto_traits)] // not present in Rust 1.49 yet |
| 2 |
|
| 3 |
#![feature(optin_builtin_traits)] |
| 4 |
|
| 5 |
auto trait Invalid { |
| 6 |
// { dg-error "auto traits cannot have methods or associated items" "" { target *-*-* } .-1 } |
| 7 |
|
| 8 |
fn foo(); // { dg-message "remove this item" } |
| 9 |
|
| 10 |
fn bar() {} // { dg-message "remove this item" } |
| 11 |
|
| 12 |
type Foo; // { dg-message "remove this item" } |
| 13 |
|
| 14 |
const FOO: i32; // { dg-message "remove this item" } |
| 15 |
|
| 16 |
const BAR: i32 = 15; // { dg-message "remove this item" } |
| 17 |
} |