diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2017-04-05 23:01:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-05 23:01:06 +0000 |
| commit | cee05080219bde70125882ef32c0a882544b9f50 (patch) | |
| tree | f918f3255ceb45636d37a3d4ebb850773449aa78 /src/test/run-pass/thinlto | |
| parent | a18202792ad4f64ba8762544899cac827ac1d5cd (diff) | |
| parent | 8f31e191c6caa1986276f2dda207135a255ee1f6 (diff) | |
| download | rust-cee05080219bde70125882ef32c0a882544b9f50.tar.gz rust-cee05080219bde70125882ef32c0a882544b9f50.zip | |
Rollup merge of #40815 - estebank:issue-40006, r=GuillaumeGomez
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: missing `fn` for method declaration
--> file.rs:3:4
|
3 | pub hello_method(&self) {
| ^ missing `fn`
```
Fix #40006. r? @pnkfelix CC @jonathandturner @GuillaumeGomez
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
