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

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

14 lines
320 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 05:54:00 -06:00
trait T { //~ ERROR trait is not supported in `trait`s or `impl`s
fn foo(&self);
}
2020-02-23 05:54:00 -06:00
pub(crate) struct Bar<T>(); //~ ERROR struct is not supported in `trait`s or `impl`s
//~ ERROR this file contains an unclosed delimiter