2020-02-01 06:18:10 +01:00
|
|
|
fn main() {}
|
|
|
|
|
|
2019-10-28 17:44:20 -07:00
|
|
|
impl T for () { //~ ERROR cannot find trait `T` in this scope
|
2019-10-25 18:30:02 -07:00
|
|
|
|
|
|
|
|
fn foo(&self) {}
|
2020-02-15 17:35:29 +01:00
|
|
|
//~^ ERROR missing `fn`, `type`, `const`, or `static` for item declaration
|
2019-10-25 18:30:02 -07:00
|
|
|
|
2020-02-01 06:18:10 +01:00
|
|
|
trait T {
|
2019-10-25 18:30:02 -07:00
|
|
|
fn foo(&self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub(crate) struct Bar<T>();
|
|
|
|
|
|
2020-01-03 08:40:15 -05:00
|
|
|
//~ ERROR this file contains an unclosed delimiter
|