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/issues | |
| 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/issues')
| -rw-r--r-- | src/test/ui/issues/issue-6458.stderr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-6458.stderr b/src/test/ui/issues/issue-6458.stderr index f1a982616a4..f548692d785 100644 --- a/src/test/ui/issues/issue-6458.stderr +++ b/src/test/ui/issues/issue-6458.stderr @@ -3,6 +3,12 @@ error[E0282]: type annotations needed | LL | foo(TypeWithState(marker::PhantomData)); | ^^^ cannot infer type for type parameter `State` declared on the function `foo` + | +help: type parameter declared here + --> $DIR/issue-6458.rs:6:12 + | +LL | pub fn foo<State>(_: TypeWithState<State>) {} + | ^^^^^ error: aborting due to previous error |
