rust/tests/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs

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

13 lines
291 B
Rust
Raw Normal View History

trait T {
fn foo(&self);
pub(crate) struct Bar<T>();
2020-02-23 05:54:00 -06:00
//~^ ERROR struct is not supported in `trait`s or `impl`s
impl T for Bar<usize> {
2020-02-23 05:54:00 -06:00
//~^ ERROR implementation is not supported in `trait`s or `impl`s
fn foo(&self) {}
}
fn main() {} //~ ERROR this file contains an unclosed delimiter