]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2565-param-attrs/param-attrs-feature-gate.rs
Rollup merge of #63055 - Mark-Simulacrum:save-analysis-clean-2, r=Xanewok
[rust.git] / src / test / ui / rfc-2565-param-attrs / param-attrs-feature-gate.rs
1 // gate-test-param_attrs
2
3 #![deny(unused_variables)]
4
5 fn foo(
6     /// Foo
7     //~^ ERROR documentation comments cannot be applied to function parameters
8     //~| NOTE doc comments are not allowed here
9     //~| ERROR attributes on function parameters are unstable
10     //~| NOTE https://github.com/rust-lang/rust/issues/60406
11     #[allow(unused_variables)] a: u8
12     //~^ ERROR attributes on function parameters are unstable
13     //~| NOTE https://github.com/rust-lang/rust/issues/60406
14 ) {}
15
16 fn main() {}