2019-10-25 20:30:02 -05:00
|
|
|
trait T {
|
|
|
|
fn foo(&self);
|
|
|
|
|
2019-11-07 04:26:36 -06:00
|
|
|
pub(crate) struct Bar<T>();
|
2020-02-23 05:54:00 -06:00
|
|
|
//~^ ERROR struct is not supported in `trait`s or `impl`s
|
2019-10-25 20:30:02 -05:00
|
|
|
|
|
|
|
impl T for Bar<usize> {
|
2020-02-23 05:54:00 -06:00
|
|
|
//~^ ERROR implementation is not supported in `trait`s or `impl`s
|
2019-10-25 20:30:02 -05:00
|
|
|
fn foo(&self) {}
|
|
|
|
}
|
|
|
|
|
2020-01-03 07:40:15 -06:00
|
|
|
fn main() {} //~ ERROR this file contains an unclosed delimiter
|