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-23 06:04:37 +01:00
|
|
|
trait T { //~ ERROR trait not supported in `trait` or `impl`
|
2019-10-25 18:30:02 -07:00
|
|
|
fn foo(&self);
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-23 06:04:37 +01:00
|
|
|
pub(crate) struct Bar<T>(); //~ ERROR struct not supported in `trait` or `impl`
|
2019-10-25 18:30:02 -07:00
|
|
|
|
2020-01-03 08:40:15 -05:00
|
|
|
//~ ERROR this file contains an unclosed delimiter
|