diff options
| author | Michael Goulet <michael@errs.io> | 2024-12-23 21:49:48 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-23 22:15:32 +0000 |
| commit | 92f93f6d1127cd8f2438474ebe4620231f5d5473 (patch) | |
| tree | e2d9b672103b6cc9c6fb2fc6439beebe9e3d2ee2 /tests/ui/statics/check-values-constraints.rs | |
| parent | addbd001ec56741829f20a3000892f8620dd0843 (diff) | |
| download | rust-92f93f6d1127cd8f2438474ebe4620231f5d5473.tar.gz rust-92f93f6d1127cd8f2438474ebe4620231f5d5473.zip | |
Note def descr in NonConstFunctionCall
Diffstat (limited to 'tests/ui/statics/check-values-constraints.rs')
| -rw-r--r-- | tests/ui/statics/check-values-constraints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/statics/check-values-constraints.rs b/tests/ui/statics/check-values-constraints.rs index 005a7798895..9df76b5c149 100644 --- a/tests/ui/statics/check-values-constraints.rs +++ b/tests/ui/statics/check-values-constraints.rs @@ -89,7 +89,7 @@ static mut STATIC13: SafeStruct = static mut STATIC14: SafeStruct = SafeStruct { field1: SafeEnum::Variant1, - field2: SafeEnum::Variant4("str".to_string()), //~ ERROR cannot call non-const fn + field2: SafeEnum::Variant4("str".to_string()), //~ ERROR cannot call non-const method }; static STATIC15: &'static [Vec<MyOwned>] = &[ |
