Files
c3c/test/test_suite/generic/used_without_param2.c3
2025-12-29 17:01:03 +01:00

11 lines
247 B
Plaintext

// #deprecation: no
module test;
import std::collections::maybe;
fn void test()
{
maybe::Maybe{float} f = (Maybe) {.value=6.6, .has_value=true};
Maybe x; // #error: 'Maybe' is a generic struct, did you forget the parameters '{ ... }'?
}