summaryrefslogtreecommitdiff
path: root/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cpp')
-rw-r--r--libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cpp b/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cpp
index 5f4fd060c866..4ab4189d3e4c 100644
--- a/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cpp
+++ b/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cpp
@@ -28,7 +28,7 @@
#include "test_macros.h"
-class NotAnItertor {};
+class NotAnIterator {};
template <typename T>
struct NotAnAllocator { typedef T value_type; };
@@ -36,7 +36,7 @@ struct NotAnAllocator { typedef T value_type; };
int main(int, char**)
{
{ // Not an iterator at all
- std::basic_string s1{NotAnItertor{}, NotAnItertor{}, std::allocator<char>{}}; // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'basic_string'}}
+ std::basic_string s1{NotAnIterator{}, NotAnIterator{}, std::allocator<char>{}}; // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'basic_string'}}
}
{ // Not an input iterator
std::basic_string<char16_t> s0;