diff options
Diffstat (limited to 'test/SemaCXX/lambda-expressions.cpp')
-rw-r--r-- | test/SemaCXX/lambda-expressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/lambda-expressions.cpp b/test/SemaCXX/lambda-expressions.cpp index 80ba0a1d03..e91dee92ed 100644 --- a/test/SemaCXX/lambda-expressions.cpp +++ b/test/SemaCXX/lambda-expressions.cpp @@ -144,7 +144,7 @@ namespace ModifyingCapture { void test() { int n = 0; [=] { - n = 1; // expected-error {{variable is not assignable (captured by copy)}} + n = 1; // expected-error {{cannot assign to a variable captured by copy in a non-mutable lambda}} }; } } |