diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-03-15 14:21:03 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-05-15 02:32:59 +0300 |
| commit | c30b41012d474586d407392a6b154e7f19c38b2c (patch) | |
| tree | adf34f62f1c929390851853093799427734a4569 /tests/ui/delegation/bad-resolve.rs | |
| parent | 8387315ab3c26a57a1f53a90f188f0bc88514bca (diff) | |
| download | rust-c30b41012d474586d407392a6b154e7f19c38b2c.tar.gz rust-c30b41012d474586d407392a6b154e7f19c38b2c.zip | |
delegation: Implement list delegation
```rust
reuse prefix::{a, b, c}
```
Diffstat (limited to 'tests/ui/delegation/bad-resolve.rs')
| -rw-r--r-- | tests/ui/delegation/bad-resolve.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/delegation/bad-resolve.rs b/tests/ui/delegation/bad-resolve.rs index d2723dc32e0..f378e05304b 100644 --- a/tests/ui/delegation/bad-resolve.rs +++ b/tests/ui/delegation/bad-resolve.rs @@ -36,4 +36,8 @@ impl Trait for S { //~^ ERROR cannot find function `foo` in this scope } +mod prefix {} +reuse unresolved_prefix::{a, b, c}; //~ ERROR use of undeclared crate or module `unresolved_prefix` +reuse prefix::{self, super, crate}; //~ ERROR `crate` in paths can only be used in start position + fn main() {} |
