mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 11:43:39 -04:00
Add testcases for item name conflict at the same path level.
This commit is contained in:
@@ -374,6 +374,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
|
||||
i8-incr.rs \
|
||||
import.rs \
|
||||
inner-module.rs \
|
||||
item-name-overload.rs \
|
||||
large-records.rs \
|
||||
lazy-and-or.rs \
|
||||
lazychan.rs \
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// -*- rust -*-
|
||||
|
||||
mod foo {
|
||||
fn bar[T](T f) -> int { ret 17; }
|
||||
type bar[U, T] = tup(int, U, T);
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
@@ -0,0 +1,11 @@
|
||||
// -*- rust -*-
|
||||
|
||||
mod foo {
|
||||
fn baz() {}
|
||||
}
|
||||
|
||||
mod bar {
|
||||
fn baz() {}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user