Auto merge of #26172 - nham:add_E0116, r=alexcrichton
Also improves the wording of the E0133 description. cc #24407
This commit is contained in:
commit
fc9e424550
5 changed files with 33 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
||||
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
impl<T> Option<T> {
|
||||
//~^ ERROR cannot associate methods with a type outside the crate the type is defined in
|
||||
//~^ ERROR cannot define inherent `impl` for a type outside of the crate where the type is defined
|
||||
pub fn foo(&self) { }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue