Skip to content

test: Move missing-items to a ui test #37771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/test/run-make/missing-items/Makefile

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
// except according to those terms.

#![feature(associated_consts)]
#![crate_type = "dylib"]

pub trait X {
const CONSTANT: u32;
type Type;
fn method(&self, s: String) -> Self::Type;
const CONSTANT: u32;
type Type;
fn method(&self, s: String) -> Self::Type;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// aux-build:m1.rs

#![feature(associated_consts)]
#![crate_type = "dylib"]

extern crate m1;

struct X {
Expand Down
14 changes: 14 additions & 0 deletions src/test/ui/missing-items/m2.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
error: main function not found

error[E0046]: not all trait items implemented, missing: `CONSTANT`, `Type`, `method`
--> $DIR/m2.rs:20:1
|
20 | impl m1::X for X {
| ^ missing `CONSTANT`, `Type`, `method` in implementation
|
= note: `CONSTANT` from trait: `const CONSTANT: u32;`
= note: `Type` from trait: `type Type;`
= note: `method` from trait: `fn(&Self, std::string::String) -> <Self as m1::X>::Type`

error: aborting due to previous error