Files
rust/tests/ui/traits/const-traits/syntax.rs

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

10 lines
206 B
Rust
Raw Normal View History

//@ compile-flags: -Z parse-crate-root-only
2020-01-02 16:31:30 -08:00
#![feature(const_trait_impl)]
// This is going down the slice/array parsing route
impl [const] T {}
//~^ ERROR: expected identifier, found `]`
impl const T {}