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

13 lines
281 B
Rust
Raw Normal View History

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