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

14 lines
310 B
Rust
Raw Normal View History

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