Be less specific in 'unresolved import' error patterns
To make sure different test set-ups (check-fast) don't cause the tests to fail.
This commit is contained in:
parent
30d923d14b
commit
46e5e2f685
@ -1,4 +1,4 @@
|
||||
// error-pattern: unresolved name: a
|
||||
// error-pattern: unresolved name: m1::a
|
||||
|
||||
mod m1 { }
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern: unresolved name: a
|
||||
// error-pattern: unresolved name: m1::a
|
||||
|
||||
mod m1 {
|
||||
mod a { }
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern: unresolved import: vec
|
||||
// error-pattern: unresolved import
|
||||
import vec;
|
||||
|
||||
fn main() { let foo = vec::len([]); }
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern:unresolved import: eggs
|
||||
// error-pattern:unresolved import
|
||||
import spam::{ham, eggs};
|
||||
|
||||
mod spam {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern: unresolved import: baz
|
||||
// error-pattern: unresolved import
|
||||
import zed::bar;
|
||||
import zed::baz;
|
||||
mod zed {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern:unresolved import: foo
|
||||
// error-pattern:unresolved import
|
||||
|
||||
mod m1 {
|
||||
fn foo() { log "foo"; }
|
||||
|
Loading…
Reference in New Issue
Block a user