docs: mention deprecated attribute with argument (#9218)

pull/9221/head
Lukas Neubert 2021-03-09 17:24:21 +01:00 committed by GitHub
parent b68784aa7f
commit 4aa0504ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -4021,6 +4021,10 @@ function/struct/enum declaration and applies only to the following declaration.
fn old_function() {
}
// It can also display a custom deprecation message
[deprecated: 'use new_function() instead']
fn legacy_function() {}
// This function's calls will be inlined.
[inline]
fn inlined_function() {