2020-01-31 23:18:10 -06:00
|
|
|
fn main() {}
|
|
|
|
|
2019-10-28 19:44:20 -05:00
|
|
|
impl T for () { //~ ERROR cannot find trait `T` in this scope
|
2019-10-25 20:30:02 -05:00
|
|
|
|
|
|
|
fn foo(&self) {}
|
|
|
|
|
2020-02-23 05:54:00 -06:00
|
|
|
trait T { //~ ERROR trait is not supported in `trait`s or `impl`s
|
2019-10-25 20:30:02 -05:00
|
|
|
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
|
2019-10-25 20:30:02 -05:00
|
|
|
|
2020-01-03 07:40:15 -06:00
|
|
|
//~ ERROR this file contains an unclosed delimiter
|