rust/tests/ui/parser/impl-item-const-semantic-fail.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
106 B
Rust
Raw Normal View History

2019-12-01 03:12:28 +00:00
fn main() {}
struct X;
impl X {
const Y: u8; //~ ERROR associated constant in `impl` without body
}