14 lines
320 B
Rust
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
|