blob: 5b716b1467cb158ad5898fe97558a7d9848db3d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
pub(crate) struct Bar<T> {
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
|