Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustc: catch
impl X for Y
where X is not a trait in resolve.
- Loading branch information
Showing
6 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2013-2014 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. | ||
|
||
// aux-build:issue_3907.rs | ||
extern crate issue_3907; | ||
|
||
type Foo = issue_3907::Foo; //~ ERROR: reference to trait | ||
|
||
struct S { | ||
name: int | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2013-2014 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. | ||
|
||
trait I {} | ||
type K = I; //~ ERROR: reference to trait | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at Ryman@ab24d29
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging Ryman/rust/non_trait_method = ab24d29 into auto
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ryman/rust/non_trait_method = ab24d29 merged ok, testing candidate = 9c2c629b
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://54.241.248.193/builders/auto-mac-64-nopt-t/builds/23
exception: http://54.241.248.193/builders/auto-mac-32-opt/builds/23
exception: http://54.241.248.193/builders/auto-linux-32-opt/builds/26
exception: http://54.241.248.193/builders/auto-linux-32-nopt-c/builds/27
exception: http://54.241.248.193/builders/auto-linux-32-nopt-t/builds/26
exception: http://54.241.248.193/builders/auto-linux-64-opt/builds/32
exception: http://54.241.248.193/builders/auto-linux-64-nopt-t/builds/26
exception: http://54.241.248.193/builders/auto-linux-64-x-android-t/builds/29
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at Ryman@ab24d29
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging Ryman/rust/non_trait_method = ab24d29 into auto
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ryman/rust/non_trait_method = ab24d29 merged ok, testing candidate = d6c1b85
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://54.241.248.193/builders/auto-mac-32-opt/builds/25
success: http://54.241.248.193/builders/auto-mac-64-opt/builds/25
success: http://54.241.248.193/builders/auto-mac-64-nopt-c/builds/25
success: http://54.241.248.193/builders/auto-mac-64-nopt-t/builds/25
success: http://54.241.248.193/builders/auto-linux-32-opt/builds/28
success: http://54.241.248.193/builders/auto-linux-32-nopt-c/builds/29
success: http://54.241.248.193/builders/auto-linux-32-nopt-t/builds/28
success: http://54.241.248.193/builders/auto-linux-64-opt/builds/34
success: http://54.241.248.193/builders/auto-linux-64-nopt-c/builds/29
success: http://54.241.248.193/builders/auto-linux-64-nopt-t/builds/28
success: http://54.241.248.193/builders/auto-linux-64-x-android-t/builds/31
success: http://54.241.248.193/builders/auto-win-32-opt/builds/29
success: http://54.241.248.193/builders/auto-win-32-nopt-t/builds/28
ab24d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = d6c1b85