about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-03-24 23:00:21 -0700
committerEsteban Küber <esteban@kuber.com.ar>2017-03-24 23:06:00 -0700
commit57009caabd2a45a6efa4d36149feec39ab0a0658 (patch)
treefbf7cad105ada8a7db30f266ce8b6313eeb62174 /src/test/run-pass/thinlto
parentc62e532f3de4c0254b772c36fe629b2042efd107 (diff)
downloadrust-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