diff options
| author | Ralf Jung <post@ralfj.de> | 2024-07-15 21:25:03 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-07-15 22:05:45 +0200 |
| commit | 9d9b55cd2b14bce066cef83d9d85ba798a2ba95c (patch) | |
| tree | 4c05ea046f4e648b05469d35071345f30d21a0f2 /tests/ui/issues/issue-26812.rs | |
| parent | b286722878e18db29a7fbe672be7c4d3b02e8e4d (diff) | |
| download | rust-9d9b55cd2b14bce066cef83d9d85ba798a2ba95c.tar.gz rust-9d9b55cd2b14bce066cef83d9d85ba798a2ba95c.zip | |
make invalid_type_param_default lint show up in cargo future-compat reports
and remove the feature gate that silenced the lint
Diffstat (limited to 'tests/ui/issues/issue-26812.rs')
| -rw-r--r-- | tests/ui/issues/issue-26812.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/issues/issue-26812.rs b/tests/ui/issues/issue-26812.rs index 3391ea4b350..e0723e016b3 100644 --- a/tests/ui/issues/issue-26812.rs +++ b/tests/ui/issues/issue-26812.rs @@ -1,6 +1,6 @@ -#![feature(default_type_parameter_fallback)] - fn avg<T=T::Item>(_: T) {} //~^ ERROR generic parameters with a default cannot use forward declared identifiers +//~| ERROR defaults for type parameters +//~| WARN previously accepted fn main() {} |
