diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-27 00:16:44 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-11-20 18:57:02 +0000 |
| commit | 19b528b8a0770d55ba3c7b3cc5b91d6466e6ff2d (patch) | |
| tree | 834abac72825a82042b96fff3235a00db6ea7b72 /tests/ui/trait-bounds | |
| parent | a1f299953656f95004c69b24ad8071d6899fa9da (diff) | |
| download | rust-19b528b8a0770d55ba3c7b3cc5b91d6466e6ff2d.tar.gz rust-19b528b8a0770d55ba3c7b3cc5b91d6466e6ff2d.zip | |
Store resolution for self and crate root module segments
Diffstat (limited to 'tests/ui/trait-bounds')
| -rw-r--r-- | tests/ui/trait-bounds/maybe-bound-has-path-args.rs | 2 | ||||
| -rw-r--r-- | tests/ui/trait-bounds/maybe-bound-has-path-args.stderr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/trait-bounds/maybe-bound-has-path-args.rs b/tests/ui/trait-bounds/maybe-bound-has-path-args.rs index 2cb63f25d06..fd0e9691700 100644 --- a/tests/ui/trait-bounds/maybe-bound-has-path-args.rs +++ b/tests/ui/trait-bounds/maybe-bound-has-path-args.rs @@ -1,7 +1,7 @@ trait Trait {} fn test<T: ?self::<i32>::Trait>() {} -//~^ ERROR type arguments are not allowed on this type +//~^ ERROR type arguments are not allowed on module `maybe_bound_has_path_args` //~| WARN relaxing a default bound only does something for `?Sized` fn main() {} diff --git a/tests/ui/trait-bounds/maybe-bound-has-path-args.stderr b/tests/ui/trait-bounds/maybe-bound-has-path-args.stderr index 701e493f5a5..0c167fff940 100644 --- a/tests/ui/trait-bounds/maybe-bound-has-path-args.stderr +++ b/tests/ui/trait-bounds/maybe-bound-has-path-args.stderr @@ -4,13 +4,13 @@ warning: relaxing a default bound only does something for `?Sized`; all other tr LL | fn test<T: ?self::<i32>::Trait>() {} | ^^^^^^^^^^^^^^^^^^^ -error[E0109]: type arguments are not allowed on this type +error[E0109]: type arguments are not allowed on module `maybe_bound_has_path_args` --> $DIR/maybe-bound-has-path-args.rs:3:20 | LL | fn test<T: ?self::<i32>::Trait>() {} | ---- ^^^ type argument not allowed | | - | not allowed on this type + | not allowed on module `maybe_bound_has_path_args` error: aborting due to 1 previous error; 1 warning emitted |
