blob: 8d5d480174e085a7db9ff14c07a34a39ee79bd33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/*
TEST_OUTPUT:
---
fail_compilation/trait_loc_err.d(13): Error: can only get the location of a symbol, not `trait_loc_err`
fail_compilation/trait_loc_err.d(14): Error: can only get the location of a symbol, not `std`
---
*/
module trait_loc_err;
import std.stdio;
void main()
{
__traits(getLocation, __traits(parent, main));
__traits(getLocation, __traits(parent, std.stdio));
}
|