mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add missings NOTE and HELP annotations to tests
This commit is contained in:
parent
36656f812d
commit
efe56c8833
@ -15,6 +15,8 @@
|
||||
|
||||
extern crate a;
|
||||
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: crate `a` path #1:
|
||||
//~| NOTE: crate `b` path #1:
|
||||
|
||||
fn main() {}
|
||||
|
@ -26,4 +26,5 @@ fn main() {
|
||||
meh(foo);
|
||||
//~^ ERROR: mismatched types:
|
||||
//~| NOTE: conflicting type parameter defaults `bool` and `char`
|
||||
//~| NOTE: ...that was applied to an unconstrained type variable here
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ struct Baz<'x> {
|
||||
|
||||
impl<'a> Baz<'a> {
|
||||
fn baz2<'b>(&self, x: &isize) -> (&'b isize, &'b isize) {
|
||||
//~^ HELP: parameter as shown: fn baz2<'b>(&self, x: &'b isize) -> (&'a isize, &'a isize)
|
||||
// The lifetime that gets assigned to `x` seems somewhat random.
|
||||
// I have disabled this test for the time being. --pcwalton
|
||||
(self.bar, x) //~ ERROR: cannot infer
|
||||
|
@ -129,12 +129,17 @@ mod foo {
|
||||
::bar::baz::foo(); //~ ERROR: function `foo` is inaccessible
|
||||
//~^ NOTE: module `baz` is private
|
||||
::bar::baz::bar(); //~ ERROR: function `bar` is inaccessible
|
||||
//~^ NOTE: module `baz` is private
|
||||
}
|
||||
|
||||
fn test2() {
|
||||
use bar::baz::{foo, bar};
|
||||
//~^ ERROR: function `foo` is inaccessible
|
||||
//~^^ ERROR: function `bar` is inaccessible
|
||||
//~| NOTE: module `baz` is private
|
||||
//~| ERROR: function `bar` is inaccessible
|
||||
//~| NOTE: module `baz` is private
|
||||
|
||||
|
||||
foo();
|
||||
bar();
|
||||
}
|
||||
|
@ -15,7 +15,9 @@
|
||||
|
||||
extern crate a;
|
||||
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: crate `a` path #1:
|
||||
//~| NOTE: crate `b` path #1:
|
||||
|
||||
fn main() {
|
||||
b::foo()
|
||||
|
@ -15,7 +15,9 @@
|
||||
|
||||
extern crate a;
|
||||
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: crate `a` path #1:
|
||||
//~| NOTE: crate `b` path #1:
|
||||
|
||||
fn main() {
|
||||
b::foo()
|
||||
|
@ -15,7 +15,9 @@
|
||||
|
||||
extern crate a;
|
||||
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: crate `a` path #1:
|
||||
//~| NOTE: crate `b` path #1:
|
||||
|
||||
fn main() {
|
||||
b::foo()
|
||||
|
@ -15,7 +15,9 @@
|
||||
|
||||
extern crate a;
|
||||
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: crate `a` path #1:
|
||||
//~| NOTE: crate `b` path #1:
|
||||
|
||||
fn main() {
|
||||
b::foo()
|
||||
|
@ -15,7 +15,9 @@
|
||||
|
||||
extern crate a;
|
||||
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: crate `a` path #1:
|
||||
//~| NOTE: crate `b` path #1:
|
||||
|
||||
fn main() {
|
||||
b::foo()
|
||||
|
@ -15,7 +15,9 @@
|
||||
|
||||
extern crate a;
|
||||
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: crate `a` path #1:
|
||||
//~| NOTE: crate `b` path #1:
|
||||
|
||||
fn main() {
|
||||
b::foo()
|
||||
|
@ -20,7 +20,9 @@
|
||||
|
||||
extern crate uta;
|
||||
extern crate utb; //~ ERROR: found possibly newer version of crate `uta` which `utb` depends
|
||||
//~^ NOTE: perhaps this crate needs to be recompiled
|
||||
//~| NOTE: perhaps this crate needs to be recompiled?
|
||||
//~| NOTE: crate `uta` path #1:
|
||||
//~| NOTE: crate `utb` path #1:
|
||||
|
||||
fn main() {
|
||||
utb::foo()
|
||||
|
Loading…
Reference in New Issue
Block a user