diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-03-24 23:00:21 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-03-24 23:06:00 -0700 |
| commit | 57009caabd2a45a6efa4d36149feec39ab0a0658 (patch) | |
| tree | fbf7cad105ada8a7db30f266ce8b6313eeb62174 /src/test/run-pass/thinlto | |
| parent | c62e532f3de4c0254b772c36fe629b2042efd107 (diff) | |
| download | rust-57009caabd2a45a6efa4d36149feec39ab0a0658.tar.gz rust-57009caabd2a45a6efa4d36149feec39ab0a0658.zip | |
Identify missing item category in `impl`s
```rust
struct S;
impl S {
pub hello_method(&self) {
println!("Hello");
}
}
fn main() { S.hello_method(); }
```
```rust
error: can't qualify macro invocation with `pub`
--> file.rs:3:4
|
3 | pub hello_method(&self) {
| ^^^- - expected `!` here for a macro invocation
| |
| did you mean to write `fn` here for a method declaration?
|
= help: try adjusting the macro to put `pub` inside the invocation
```
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
