blob: 7d060fa6fb531010e37474ae8a110f8568c538b9 [file] [log] [blame]
// { dg-do compile { target c++20 } }
#include <span>
// PR libstdc++/101411
void f(std::span<const int> s)
{
std::as_writable_bytes(s); // { dg-error "no matching function" }
}
void f1(std::span<const int, 1> s)
{
std::as_writable_bytes(s); // { dg-error "no matching function" }
}