diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-05-20 13:49:41 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-05-20 23:04:44 +0900 |
| commit | 3d0f9fb544cc73ea4016696e43868b71bf3c8226 (patch) | |
| tree | 22652854fcd39d055fdf260b8a3e52d36ae0d2d8 /src/test/ui/missing | |
| parent | 910979a6d4a8e1945933cc989e6b22a675fc1d42 (diff) | |
| download | rust-3d0f9fb544cc73ea4016696e43868b71bf3c8226.tar.gz rust-3d0f9fb544cc73ea4016696e43868b71bf3c8226.zip | |
report ambiguous type parameters when their parents are impl or fn
fix ci error emit err for `impl_item`
Diffstat (limited to 'src/test/ui/missing')
| -rw-r--r-- | src/test/ui/missing/missing-items/missing-type-parameter.stderr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/missing/missing-items/missing-type-parameter.stderr b/src/test/ui/missing/missing-items/missing-type-parameter.stderr index 1219badc5b3..2aa2b0e6a3c 100644 --- a/src/test/ui/missing/missing-items/missing-type-parameter.stderr +++ b/src/test/ui/missing/missing-items/missing-type-parameter.stderr @@ -3,6 +3,12 @@ error[E0282]: type annotations needed | LL | foo(); | ^^^ cannot infer type for type parameter `X` declared on the function `foo` + | +help: type parameter declared here + --> $DIR/missing-type-parameter.rs:1:8 + | +LL | fn foo<X>() { } + | ^ error: aborting due to previous error |
