mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
13 lines
291 B
Rust
13 lines
291 B
Rust
trait T {
|
|
fn foo(&self);
|
|
|
|
pub(crate) struct Bar<T>();
|
|
//~^ ERROR struct is not supported in `trait`s or `impl`s
|
|
|
|
impl T for Bar<usize> {
|
|
//~^ ERROR implementation is not supported in `trait`s or `impl`s
|
|
fn foo(&self) {}
|
|
}
|
|
|
|
fn main() {} //~ ERROR this file contains an unclosed delimiter
|