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

14 lines
317 B
Rust
Raw Normal View History

fn main() {}
impl T for () { //~ ERROR cannot find trait `T` in this scope
fn foo(&self) {}
trait T { //~ ERROR item kind not supported in `trait` or `impl`
fn foo(&self);
}
pub(crate) struct Bar<T>(); //~ ERROR item kind not supported in `trait` or `impl`
//~ ERROR this file contains an unclosed delimiter