xref: /PHP-8.1/Zend/tests/traits/error_007.phpt (revision 782352c5)
1--TEST--
2Trying to instantiate a trait
3--FILE--
4<?php
5
6trait abc {
7}
8
9new abc;
10
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Cannot instantiate trait abc in %s:%d
14Stack trace:
15#0 {main}
16  thrown in %s on line %d
17