blob: 8f46970b1af4dc422966c3eb4ac22431db260367 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|