blob: 7f9cba2bc4a587d4e7ae80e4c2337e6fe2787f26 [file] [log] [blame]
// REQUIRED_ARGS: -w
/*
TEST_OUTPUT:
---
fail_compilation/fail8724.d(14): Error: `object.Exception` is thrown but not caught
fail_compilation/fail8724.d(12): Error: nothrow constructor `fail8724.Foo.this` may throw
---
*/
struct Foo
{
this(int) nothrow
{
throw new Exception("something");
}
}