rust/tests/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs
2023-01-11 09:32:08 +00:00

14 lines
320 B
Rust

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