2019-10-28 19:44:20 -05:00
|
|
|
pub(crate) struct Bar<T> {
|
2019-10-25 20:30:02 -05:00
|
|
|
foo: T,
|
|
|
|
|
|
|
|
trait T { //~ ERROR expected identifier, found keyword `trait`
|
|
|
|
//~^ ERROR expected `:`, found `T`
|
|
|
|
fn foo(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl T for Bar<usize> {
|
|
|
|
fn foo(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {} //~ ERROR this file contains an un-closed delimiter
|