Rollup merge of #46258 - colinmarsh19:master, r=estebank
Remove semicolon note In reference to issue #46186 r? @estebank First time doing a pull request, if there are any suggestions on how to improve this please let me know. @jjolly
This commit is contained in:
commit
f33edd2ed0
3 changed files with 29 additions and 1 deletions
15
src/test/ui/issue-46186.rs
Normal file
15
src/test/ui/issue-46186.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
struct Struct {
|
||||
a: usize,
|
||||
}; //~ ERROR expected item, found `;`
|
||||
|
||||
fn main() {}
|
||||
8
src/test/ui/issue-46186.stderr
Normal file
8
src/test/ui/issue-46186.stderr
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
error: expected item, found `;`
|
||||
--> $DIR/issue-46186.rs:13:2
|
||||
|
|
||||
13 | }; //~ ERROR expected item, found `;`
|
||||
| ^ help: consider removing this semicolon
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue