xref: /PHP-8.0/Zend/tests/traits/error_016.phpt (revision f8d79582)
1--TEST--
2Trying to create a constant on Trait
3--FILE--
4<?php
5
6trait foo {
7    const a = 1;
8}
9
10?>
11--EXPECTF--
12Fatal error: Traits cannot have constants in %s on line %d
13