mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
module test;
|
|
import std::collections::elastic_array;
|
|
fn void a()
|
|
{
|
|
List {int} x; // #error: Did you mean the struct 'List' in module std::collections::list? If so please add
|
|
}
|
|
|
|
fn void b()
|
|
{
|
|
list::ONHEAP{int}; // #error: Did you mean the constant 'std::collections::list::ONHEAP' in module std::collections::list?
|
|
}
|
|
|
|
fn void c()
|
|
{
|
|
list::type_is_overaligned{int}(); // #error: Did you mean the macro 'std::collections::list::type_is_overaligned' in module std::collections::list?
|
|
}
|
|
|
|
fn void d()
|
|
{
|
|
list::type_is_overaligned(); // #error: Did you mean the macro 'std::collections::list::type_is_overaligned' in module std::collections::list? If so please add 'import std::collections::list'
|
|
}
|
|
|
|
fn void d2()
|
|
{
|
|
elastic_array::type_is_overaligned(); // #error: 'type_is_overaligned' is a generic macro, did you forget the parameters '{ ... }'
|
|
}
|
|
|
|
fn void e()
|
|
{
|
|
List x; // #error: Did you mean the struct 'List' in module std::collections::list? If so please add 'import std::collections::list'
|
|
}
|
|
|
|
fn void f()
|
|
{
|
|
ElasticArray x; // #error: 'ElasticArray' is a generic struct, did you forget the parameters '{ ... }'?
|
|
}
|
|
|
|
fn void g()
|
|
{
|
|
(ElasticArray){}; // #error: 'ElasticArray' is a generic struct, did you forget the parameters '{ ... }'?
|
|
}
|
|
|
|
fn int main(String[] args)
|
|
{
|
|
return 0;
|
|
} |