mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
7 lines
156 B
Rust
7 lines
156 B
Rust
|
fn test(s: &Self::Id) {
|
||
|
//~^ ERROR failed to resolve: `Self` is only available in impls, traits, and type definitions
|
||
|
match &s[0..3] {}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|